feat(nvim): add volar lsp config
This commit is contained in:
parent
9935cd4aa4
commit
c2cb7bf1f6
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue