enc: move lsp config to auto-lsp.nvim

This commit is contained in:
Pojok Code 2024-10-20 17:21:07 +07:00
parent 5f766a5717
commit c09e320633
22 changed files with 253 additions and 293 deletions

View file

@ -0,0 +1,25 @@
local opts = {
setup = {
root_dir = require("lspconfig.util").root_pattern("package.json", "vue.config.js")
or vim.loop.cwd()
or vim.fn.getcwd(),
init_options = {
config = {
vetur = {
completion = {
autoImport = true,
tagCasing = "kebab",
useScaffoldSnippets = true,
},
useWorkspaceDependencies = true,
validation = {
script = true,
style = true,
template = true,
},
},
},
},
},
}
return opts