mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
27 lines
634 B
Lua
27 lines
634 B
Lua
|
local opts = {
|
||
|
setup = {
|
||
|
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,
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
return opts
|