mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 12:31:07 +00:00
fix: add warning message for lang.vue when vtsls is not enabled
This commit is contained in:
parent
83d90f339d
commit
7093013e99
1 changed files with 11 additions and 0 deletions
|
|
@ -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", {
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue