rename tsserver to ts_ls

This commit is contained in:
2024-10-09 22:23:24 +03:00
parent b10e7d85eb
commit b1a0742ffa

View File

@@ -31,7 +31,7 @@ return {
-- Replace the language servers listed here -- Replace the language servers listed here
-- with the ones you want to install -- with the ones you want to install
ensure_installed = { ensure_installed = {
'tsserver', 'ts_ls',
'lua_ls', 'lua_ls',
'gopls', 'gopls',
'pylsp', 'pylsp',
@@ -43,9 +43,6 @@ return {
}, },
handlers = { handlers = {
function(server_name) function(server_name)
if server_name == 'tsserver' then
server_name = 'ts_ls'
end
local capabilities = require('cmp_nvim_lsp').default_capabilities() local capabilities = require('cmp_nvim_lsp').default_capabilities()
require('lspconfig')[server_name].setup({ require('lspconfig')[server_name].setup({
capabilities = capabilities capabilities = capabilities