mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Revert "perf(vue): fix duplicated typescript server for vue files"
This reverts commit 5538839c31.
This commit is contained in:
parent
5538839c31
commit
aed81c570b
2 changed files with 11 additions and 20 deletions
|
|
@ -49,11 +49,6 @@ vim.g.bigfile_size = 1024 * 1024 * 1.5 -- 1.5 MB
|
||||||
-- Show the current document symbols location from Trouble in lualine
|
-- Show the current document symbols location from Trouble in lualine
|
||||||
vim.g.trouble_lualine = true
|
vim.g.trouble_lualine = true
|
||||||
|
|
||||||
-- Enable hybrid mode for Vue files
|
|
||||||
-- If the hybrid mode is enabled, a sperate vtsls will run for Vue files
|
|
||||||
-- If the hybrid mode is disabled, volar will run a tsserver under the hood
|
|
||||||
vim.g.vue_hybrid_mode = true
|
|
||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
opt.autowrite = true -- Enable auto write
|
opt.autowrite = true -- Enable auto write
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
local enableHybridMode = vim.g.vue_hybrid_mode
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
recommended = function()
|
recommended = function()
|
||||||
return LazyVim.extras.wants({
|
return LazyVim.extras.wants({
|
||||||
|
|
@ -24,7 +22,7 @@ return {
|
||||||
volar = {
|
volar = {
|
||||||
init_options = {
|
init_options = {
|
||||||
vue = {
|
vue = {
|
||||||
hybridMode = enableHybridMode,
|
hybridMode = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -37,7 +35,6 @@ return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
if enableHybridMode then
|
|
||||||
table.insert(opts.servers.vtsls.filetypes, "vue")
|
table.insert(opts.servers.vtsls.filetypes, "vue")
|
||||||
LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", {
|
LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", {
|
||||||
{
|
{
|
||||||
|
|
@ -48,7 +45,6 @@ return {
|
||||||
enableForWorkspaceTypeScriptVersions = true,
|
enableForWorkspaceTypeScriptVersions = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue