nvim: add typescript-language-server, remove eslint
This commit is contained in:
parent
82abfc7889
commit
fdf41eb400
|
@ -172,13 +172,6 @@ if vim.fn.executable('vscode-css-language-server') > 0 then
|
|||
})
|
||||
end
|
||||
|
||||
if vim.fn.executable('vscode-eslint-language-server') > 0 then
|
||||
lspconfig.eslint.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
})
|
||||
end
|
||||
|
||||
if vim.fn.executable('vscode-json-language-server') > 0 then
|
||||
lspconfig.jsonls.setup({
|
||||
on_attach = on_attach,
|
||||
|
@ -229,8 +222,19 @@ if vim.fn.executable('cmake-language-server') > 0 then
|
|||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
if vim.fn.executable('typescript-language-server') > 0 then
|
||||
lspconfig.tsserver.setup({
|
||||
cmd = {
|
||||
'typescript-language-server', '--stdio',
|
||||
'--tsserver-path', 'tsserver'
|
||||
},
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities
|
||||
})
|
||||
end
|
||||
|
||||
require('lsp-format').setup({
|
||||
sync = true -- seems to be needed to not interfere with Neogit
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue