hopefully fix typescript checking in vue files

This commit is contained in:
Mark Riedesel 2024-08-07 11:14:34 -05:00
parent 85080081bc
commit a61051f82b
5 changed files with 55 additions and 1 deletions

View file

@ -133,8 +133,38 @@ return {
})
end,
lspconfig.gdscript.setup({})
["tsserver"] = function ()
local mason_registry = require 'mason-registry'
local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path()
lspconfig['tsserver'].setup({
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = vue_language_server_path,
languages = { 'vue' },
},
},
},
})
end,
["volar"] = function ()
lspconfig['volar'].setup {
init_options = {
vue = {
hybridMode = false,
},
},
filetypes = {
'vue',
},
}
end,
})
lspconfig.gdscript.setup {}
end,
}

View file

@ -21,6 +21,8 @@ return {
package_pending = "",
package_uninstalled = "",
},
width = 0.8,
height = 0.9,
},
})