remove vue

This commit is contained in:
veypi
2026-04-23 21:59:31 +08:00
parent 095acafb62
commit 55a727d496
3 changed files with 11 additions and 33 deletions
+1 -22
View File
@@ -1,5 +1,3 @@
-- http://www.lazyvim.org/extras/lang/vue
require("lspconfig").ts_ls.setup({
cmd = { "typescript-language-server", "--stdio" },
filetype = { "javascript", "html" },
@@ -8,7 +6,7 @@ require("lspconfig").ts_ls.setup({
return {
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "vue", "css", "scss", "go", "gomod", "gowork", "gosum", "json5" } },
opts = { ensure_installed = { "css", "scss", "go", "gomod", "gowork", "gosum", "json5" } },
},
{
"mason-org/mason.nvim",
@@ -32,13 +30,6 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
volar = {
init_options = {
vue = {
hybridMode = true,
},
},
},
tsserver = {
enabled = false,
},
@@ -59,7 +50,6 @@ return {
vtsls = {
enabled = false,
filetypes = {
"vue",
"javascript",
"javascriptreact",
"javascript.jsx",
@@ -99,16 +89,5 @@ return {
},
{
"neovim/nvim-lspconfig",
opts = function(_, opts)
LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", {
{
name = "@vue/typescript-plugin",
location = LazyVim.get_pkg_path("vue-language-server", "/node_modules/@vue/language-server"),
languages = { "vue" },
configNamespace = "typescript",
enableForWorkspaceTypeScriptVersions = true,
},
})
end,
},
}