|
@@ -1077,6 +1077,27 @@ lvim.lang = {
|
|
cmd = {
|
|
cmd = {
|
|
DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls",
|
|
DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls",
|
|
},
|
|
},
|
|
|
|
+ root_dir = function(fname)
|
|
|
|
+ local util = require "lspconfig/util"
|
|
|
|
+ return util.root_pattern "package.json"(fname) or util.root_pattern "vue.config.js"(fname) or vim.fn.getcwd()
|
|
|
|
+ end,
|
|
|
|
+ init_options = {
|
|
|
|
+ config = {
|
|
|
|
+ vetur = {
|
|
|
|
+ completion = {
|
|
|
|
+ autoImport = true,
|
|
|
|
+ tagCasing = "kebab",
|
|
|
|
+ useScaffoldSnippets = true,
|
|
|
|
+ },
|
|
|
|
+ useWorkspaceDependencies = true,
|
|
|
|
+ validation = {
|
|
|
|
+ script = true,
|
|
|
|
+ style = true,
|
|
|
|
+ template = true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|