add eslint, tslint to nvim-cmp
This commit is contained in:
parent
f259ac15a8
commit
fb9c79f28a
@ -19,6 +19,8 @@ require("null-ls").setup({
|
|||||||
null_ls.builtins.code_actions.shellcheck,
|
null_ls.builtins.code_actions.shellcheck,
|
||||||
null_ls.builtins.diagnostics.cppcheck,
|
null_ls.builtins.diagnostics.cppcheck,
|
||||||
null_ls.builtins.diagnostics.gitlint,
|
null_ls.builtins.diagnostics.gitlint,
|
||||||
|
null_ls.builtins.diagnostics.eslint
|
||||||
|
.with({ cmd = "eslint-language-server" }),
|
||||||
null_ls.builtins.diagnostics.jsonlint,
|
null_ls.builtins.diagnostics.jsonlint,
|
||||||
require("null-ls").builtins.diagnostics.luacheck,
|
require("null-ls").builtins.diagnostics.luacheck,
|
||||||
null_ls.builtins.diagnostics.markdownlint,
|
null_ls.builtins.diagnostics.markdownlint,
|
||||||
|
@ -214,7 +214,7 @@ cmp.setup.cmdline(':', {
|
|||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
'bashls', 'jedi_language_server', 'jsonls', 'yamlls', 'vimls', 'dotls',
|
'bashls', 'jedi_language_server', 'jsonls', 'yamlls', 'vimls', 'dotls',
|
||||||
'dockerls', 'html', 'cssls', 'lua_ls'
|
'dockerls', 'html', 'cssls', 'lua_ls', 'tsserver', 'eslint'
|
||||||
}
|
}
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
if lsp == 'lua_ls' then
|
if lsp == 'lua_ls' then
|
||||||
|
Loading…
Reference in New Issue
Block a user