updated mason file

This commit is contained in:
2025-10-27 21:37:17 -05:00
parent 6b4a10b13d
commit 77330ca013

View File

@@ -1,42 +1,50 @@
-- lua/plugins/mason.lua
return { return {
"mason-org/mason.nvim", -- Make mason-lspconfig the primary spec and feed it opts
dependencies = { "mason-org/mason-lspconfig.nvim",
"mason-org/mason-lspconfig.nvim", opts = {
"WhoIsSethDaniel/mason-tool-installer.nvim", -- LSPCONFIG SERVER NAMES here
ensure_installed = {
"html",
"cssls",
"tailwindcss",
"svelte",
"lua_ls",
"graphql",
"emmet_language_server", -- valid id in modern lspconfig
-- "ts_ls",
-- "prismals",
},
-- automatic_enable = true, -- default; can omit
}, },
config = function() dependencies = {
local mason = require("mason") -- Ensure mason is set up first (well give it opts inline)
local mason_lspconfig = require("mason-lspconfig") {
local mason_tool_installer = require("mason-tool-installer") "mason-org/mason.nvim",
opts = {
mason.setup({ ui = {
ui = { icons = {
icons = { package_installed = "",
package_installed = "", package_pending = "",
package_pending = "", package_uninstalled = "",
package_uninstalled = "", },
}, },
}, },
}) },
mason_lspconfig.setup({ -- CRITICAL: guarantee lspconfig is on rtp before mason-lspconfig runs
-- Use LSPCONFIG SERVER NAMES here "neovim/nvim-lspconfig",
ensure_installed = {
"html",
"cssls",
"tailwindcss",
"svelte",
"lua_ls",
"graphql",
"emmet_language_server", -- <- was "emmet_ls"
"prismals",
-- "ts_ls", -- <- if you enable TypeScript later
},
-- automatic_enable = true, -- default in v2; can omit
})
mason_tool_installer.setup({ -- Tools installer (uses Mason package names, not LSP ids)
-- Use MASON PACKAGE NAMES here "WhoIsSethDaniel/mason-tool-installer.nvim",
},
config = function(_, opts)
-- mason-lspconfig via opts
require("mason-lspconfig").setup(opts)
-- tools installer stays separate and uses Mason package names
require("mason-tool-installer").setup({
ensure_installed = { ensure_installed = {
"prettier", "prettier",
"stylua", "stylua",