From 7093013e9946e6de1f8c5d9574db4a46e6bf4608 Mon Sep 17 00:00:00 2001 From: yihao Date: Wed, 22 Apr 2026 14:39:21 +0800 Subject: [PATCH 1/3] fix: add warning message for lang.vue when vtsls is not enabled --- lua/lazyvim/plugins/extras/lang/vue.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/vue.lua b/lua/lazyvim/plugins/extras/lang/vue.lua index a45caee7..887f3d27 100644 --- a/lua/lazyvim/plugins/extras/lang/vue.lua +++ b/lua/lazyvim/plugins/extras/lang/vue.lua @@ -29,6 +29,17 @@ return { { "neovim/nvim-lspconfig", opts = function(_, opts) + if not opts.servers.vtsls or opts.servers.vtsls.enabled == false then + LazyVim.warn({ + "The `lang.vue` extras requires `vtsls` for TypeScript integration.", + "Please enable `vtsls` so `lang.vue` works correctly.", + }, { + title = "LazyVim", + once = true, + }) + return + end + table.insert(opts.servers.vtsls.filetypes, "vue") LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", { { From 21ac67368f712a6d20143ad4e44f8255c97e4cdd Mon Sep 17 00:00:00 2001 From: Hon Yi Hao <165232024+yihao03@users.noreply.github.com> Date: Wed, 22 Apr 2026 16:34:35 +0800 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- lua/lazyvim/plugins/extras/lang/vue.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/vue.lua b/lua/lazyvim/plugins/extras/lang/vue.lua index 887f3d27..4dec016d 100644 --- a/lua/lazyvim/plugins/extras/lang/vue.lua +++ b/lua/lazyvim/plugins/extras/lang/vue.lua @@ -31,8 +31,9 @@ return { opts = function(_, opts) if not opts.servers.vtsls or opts.servers.vtsls.enabled == false then LazyVim.warn({ - "The `lang.vue` extras requires `vtsls` for TypeScript integration.", - "Please enable `vtsls` so `lang.vue` works correctly.", + "The `lang.vue` extra requires `vtsls` for TypeScript integration.", + "Enable the `lang.typescript.vtsls` extra, or set `vim.g.lazyvim_ts_lsp = \"vtsls\"`.", + "If you are using `lang.typescript.tsgo`, disable it so `vtsls` can be used for `lang.vue`.", }, { title = "LazyVim", once = true, From 8893db9ed43948c8cad660f1ae20ea133511d6fc Mon Sep 17 00:00:00 2001 From: yihao Date: Wed, 22 Apr 2026 16:36:08 +0800 Subject: [PATCH 3/3] lint --- lua/lazyvim/plugins/extras/lang/vue.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/lang/vue.lua b/lua/lazyvim/plugins/extras/lang/vue.lua index 4dec016d..1aab665c 100644 --- a/lua/lazyvim/plugins/extras/lang/vue.lua +++ b/lua/lazyvim/plugins/extras/lang/vue.lua @@ -32,7 +32,7 @@ return { if not opts.servers.vtsls or opts.servers.vtsls.enabled == false then LazyVim.warn({ "The `lang.vue` extra requires `vtsls` for TypeScript integration.", - "Enable the `lang.typescript.vtsls` extra, or set `vim.g.lazyvim_ts_lsp = \"vtsls\"`.", + 'Enable the `lang.typescript.vtsls` extra, or set `vim.g.lazyvim_ts_lsp = "vtsls"`.', "If you are using `lang.typescript.tsgo`, disable it so `vtsls` can be used for `lang.vue`.", }, { title = "LazyVim",