diff --git a/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua b/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua index 00da4bf..68a03de 100644 --- a/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua +++ b/.config/nvim/lua/josean/plugins/lsp/lspconfig.lua @@ -81,6 +81,16 @@ return { mason_lspconfig.setup_handlers({ -- default handler for installed servers function(server_name) + -- https://github.com/neovim/nvim-lspconfig/pull/3232#issuecomment-2331025714 + if server_name == "tsserver" then + server_name = "ts_ls" + end + local capabilities = require("cmp_nvim_lsp").default_capabilities() + require("lspconfig")[server_name].setup({ + + capabilities = capabilities, + }) + lspconfig[server_name].setup({ capabilities = capabilities, })