From fb9c79f28a1c906ae1611fe44915a6a2e6431c5a Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Sun, 27 Aug 2023 23:43:14 -0700 Subject: [PATCH] add eslint, tslint to nvim-cmp --- plugin-confs/null-ls.lua | 2 ++ plugin-confs/nvim-cmp.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin-confs/null-ls.lua b/plugin-confs/null-ls.lua index ed00ddf..d134ea2 100644 --- a/plugin-confs/null-ls.lua +++ b/plugin-confs/null-ls.lua @@ -19,6 +19,8 @@ require("null-ls").setup({ null_ls.builtins.code_actions.shellcheck, null_ls.builtins.diagnostics.cppcheck, null_ls.builtins.diagnostics.gitlint, + null_ls.builtins.diagnostics.eslint + .with({ cmd = "eslint-language-server" }), null_ls.builtins.diagnostics.jsonlint, require("null-ls").builtins.diagnostics.luacheck, null_ls.builtins.diagnostics.markdownlint, diff --git a/plugin-confs/nvim-cmp.lua b/plugin-confs/nvim-cmp.lua index 9aebe69..55ed0b4 100644 --- a/plugin-confs/nvim-cmp.lua +++ b/plugin-confs/nvim-cmp.lua @@ -214,7 +214,7 @@ cmp.setup.cmdline(':', { local servers = { '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 if lsp == 'lua_ls' then