rename tsserver to ts_ls
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user