mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 17:51:20 +01:00
fix(tsserver-deprecation): use ts_ls where tsserver is being used in lspconfig
This commit is contained in:
parent
cb670e8890
commit
567fcbd4b1
1 changed files with 10 additions and 0 deletions
|
@ -81,6 +81,16 @@ return {
|
||||||
mason_lspconfig.setup_handlers({
|
mason_lspconfig.setup_handlers({
|
||||||
-- default handler for installed servers
|
-- default handler for installed servers
|
||||||
function(server_name)
|
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({
|
lspconfig[server_name].setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue