user/neovim: replace volar with tsserver
This commit is contained in:
parent
db849ea5c2
commit
77eddb1aae
1 changed files with 1 additions and 7 deletions
|
|
@ -139,7 +139,7 @@ local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
|
||||
|
||||
local servers = { 'cssls', 'html', 'rnix', 'rust_analyzer', 'yamlls' }
|
||||
local servers = { 'cssls', 'html', 'rnix', 'rust_analyzer', 'tsserver', 'yamlls' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
capabilities = capabilities,
|
||||
|
|
@ -195,12 +195,6 @@ cmp.setup {
|
|||
}
|
||||
}
|
||||
|
||||
-- LSP/Volar
|
||||
require'lspconfig'.volar.setup{
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },
|
||||
cmd = { 'vue-language-server', '--stdio' }
|
||||
}
|
||||
|
||||
-- LSP/Omnisharp
|
||||
local pid = vim.fn.getpid()
|
||||
require'lspconfig'.omnisharp.setup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue