This commit is contained in:
Hon Yi Hao 2026-06-02 16:48:48 +03:00 committed by GitHub
commit 89af9ade62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,18 @@ return {
{
"neovim/nvim-lspconfig",
opts = function(_, opts)
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"`.',
"If you are using `lang.typescript.tsgo`, disable it so `vtsls` can be used for `lang.vue`.",
}, {
title = "LazyVim",
once = true,
})
return
end
table.insert(opts.servers.vtsls.filetypes, "vue")
LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", {
{