feat(nvim): add volar lsp config

main
mandlm 2023-01-09 07:41:29 +01:00
parent 9935cd4aa4
commit c2cb7bf1f6
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 8 additions and 0 deletions

View File

@ -154,3 +154,11 @@ lspconfig["html"].setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
}) })
-- setup volar
lspconfig["volar"].setup({
cmd = { "./node_modules/.bin/vue-language-server", "--stdio" },
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },
on_attach = on_attach,
capabilities = capabilities,
})