summaryrefslogtreecommitdiff
path: root/lua/lang/vue.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-15 05:18:05 +0430
committerGitHub <[email protected]>2021-07-14 20:48:05 -0400
commite6de44e4443042dc14d34e36dd8ee8528f4936f2 (patch)
treed600f814c33e9154bbb3fdde0dfda6e75b071483 /lua/lang/vue.lua
parent2a7b3d4892605508d0b0328444d689e1c4922897 (diff)
more language reformat (#949)
Diffstat (limited to 'lua/lang/vue.lua')
-rw-r--r--lua/lang/vue.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/lua/lang/vue.lua b/lua/lang/vue.lua
index 178c6f54..8fd2af7e 100644
--- a/lua/lang/vue.lua
+++ b/lua/lang/vue.lua
@@ -15,7 +15,18 @@ M.lint = function()
return "No linters configured!"
end
-M.lsp = function() end
+M.lsp = function()
+ if require("lv-utils").check_lsp_client_active "vuels" then
+ return
+ end
+
+ -- Vue language server configuration (vetur)
+ 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", "vue.config.js", "package.json", "yarn.lock"),
+ }
+end
M.dap = function()
-- TODO: implement dap