Vue support fixed

This commit is contained in:
Maurice Grönwoldt 2025-09-17 17:53:46 +02:00
commit 70f5f3c859
No known key found for this signature in database
GPG key ID: FBB005FE74FEF996
7 changed files with 62 additions and 26 deletions

View file

@ -1,18 +1,21 @@
if not table.unpack then
table.unpack = unpack
end
return {
-- Main LSP Configuration
"neovim/nvim-lspconfig",
dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim
-- Mason must be loaded before its dependents so we need to set it up here.
-- NOTE: `opts = {}` is the same as calling `require('mason').setup({})`
{ "williamboman/mason.nvim", opts = {} },
"williamboman/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
"folke/neoconf.nvim",
-- Useful status updates for LSP.
{ "j-hui/fidget.nvim", opts = {} },
},
config = function()
require("neoconf").setup({})
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
callback = function(event)
@ -106,18 +109,17 @@ return {
local capabilities = vim.lsp.protocol.make_client_capabilities()
local servers = require("lsp")
local ensure_installed = { "lua_ls" } --vim.tbl_keys(servers or {})
local ensure_installed = { "lua_ls", "ts_ls", "vue-language-server" }
vim.list_extend(ensure_installed, {
"stylua", -- Used to format Lua code
"stylua",
})
require("mason-tool-installer").setup({ ensure_installed = ensure_installed })
for name, value in pairs(servers) do --pseudocode
for name, value in pairs(servers) do
vim.lsp.config(name, value)
end
require("mason-lspconfig").setup({
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
ensure_installed = {},
automatic_installation = false,
})
end,