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 {
"mason-org/mason.nvim",
dependencies = {
"mason-org/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
-- Make mason-lspconfig the primary spec and feed it opts
"mason-org/mason-lspconfig.nvim",
opts = {
-- 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()
local mason = require("mason")
local mason_lspconfig = require("mason-lspconfig")
local mason_tool_installer = require("mason-tool-installer")
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
dependencies = {
-- Ensure mason is set up first (well give it opts inline)
{
"mason-org/mason.nvim",
opts = {
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
},
})
},
mason_lspconfig.setup({
-- Use LSPCONFIG SERVER NAMES here
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
})
-- CRITICAL: guarantee lspconfig is on rtp before mason-lspconfig runs
"neovim/nvim-lspconfig",
mason_tool_installer.setup({
-- Use MASON PACKAGE NAMES here
-- Tools installer (uses Mason package names, not LSP ids)
"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 = {
"prettier",
"stylua",