mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
move @vue/typescript-plugin back to extend function call
This commit is contained in:
parent
65b75dcf0d
commit
a091e0d7e5
1 changed files with 13 additions and 17 deletions
|
|
@ -18,9 +18,9 @@ return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local vue_typescript_plugin = require("mason-registry").get_package("vue-language-server"):get_install_path()
|
local vue_typescript_plugin = require("mason-registry")
|
||||||
.. "/node_modules/@vue/language-server"
|
.get_package("vue-language-server")
|
||||||
.. "/node_modules/@vue/typescript-plugin"
|
:get_install_path() .. "/node_modules/@vue/language-server" .. "/node_modules/@vue/typescript-plugin"
|
||||||
|
|
||||||
opts.servers = vim.tbl_deep_extend("force", opts.servers, {
|
opts.servers = vim.tbl_deep_extend("force", opts.servers, {
|
||||||
volar = {},
|
volar = {},
|
||||||
|
|
@ -36,22 +36,18 @@ return {
|
||||||
"typescript.tsx",
|
"typescript.tsx",
|
||||||
"vue",
|
"vue",
|
||||||
},
|
},
|
||||||
settings = {
|
},
|
||||||
vtsls = {
|
})
|
||||||
tsserver = {
|
LazyVim.extend(opts.servers.vtsls.settings.vtsls.tsserver.globalPlugins, {
|
||||||
globalPlugins = {
|
|
||||||
{
|
{
|
||||||
name = "@vue/typescript-plugin",
|
name = "@vue/typescript-plugin",
|
||||||
location = vue_typescript_plugin,
|
location = vue_typescript_plugin,
|
||||||
languages = { "vue" },
|
languages = { "vue" },
|
||||||
configNamespace = "typescript",
|
configNamespace = "typescript",
|
||||||
},
|
},
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue