Browse Source

Fix Vue LSP (#378)

Brymer Meneses 4 years ago
parent
commit
4de1cb5a57
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lua/lsp/vue-ls.lua

+ 4 - 3
lua/lsp/vue-ls.lua

@@ -1,5 +1,6 @@
 
 
-local lsp = require'lspconfig'
-lsp.vuels.setup{
-root_dir = lsp.util.root_pattern(".git",".")
+require('lspconfig').vuels.setup {
+    cmd = {DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls", "--stdio"},
+    on_attach = require'lsp'.common_on_attach,
+    root_dir = require('lspconfig').util.root_pattern(".git", ".")
 }
 }