feat(nvim): add volar lsp config

This commit is contained in:
Michael Mandl 2023-01-09 07:41:29 +01:00
parent 9935cd4aa4
commit c2cb7bf1f6
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -154,3 +154,11 @@ lspconfig["html"].setup({
on_attach = on_attach,
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,
})