1
0
Fork 0

nvim: add typescript-language-server, remove eslint

This commit is contained in:
tastytea 2022-09-04 05:40:09 +02:00
parent 82abfc7889
commit fdf41eb400
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 12 additions and 8 deletions

View File

@ -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
})