add eslint, tslint to nvim-cmp

This commit is contained in:
ksyasuda 2023-08-27 23:43:14 -07:00
parent f259ac15a8
commit fb9c79f28a
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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