From 4de1cb5a57adfeb6b460c6a8b7a0649f5312f960 Mon Sep 17 00:00:00 2001 From: Brymer Meneses <68867487+brymer-meneses@users.noreply.github.com> Date: Sat, 8 May 2021 05:23:35 +0800 Subject: Fix Vue LSP (#378) --- lua/lsp/vue-ls.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua/lsp/vue-ls.lua') diff --git a/lua/lsp/vue-ls.lua b/lua/lsp/vue-ls.lua index 0f258880..f18fe2ab 100644 --- a/lua/lsp/vue-ls.lua +++ b/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", ".") } -- cgit v1.2.3