Ensure installed for mason

This commit is contained in:
Vaclav Uruba 2025-05-28 19:16:35 -06:00
parent 9d8b0d2302
commit e096af711f
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -1,19 +1,38 @@
-- Plenary
return {
"mason-org/mason.nvim",
config = function()
-- import mason
local mason = require("mason")
-- enable mason and configure icons
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
opts = {
ensure_installed = {
-- formatters
"gofumpt",
"goimports",
"gomodifytags",
"prettier",
"sqruff",
"stylua",
-- linters
"eslint_d",
"golangci-lint",
"pylint",
"sqlfluff",
"sqruff",
-- LSP
"css-lsp",
"emmet-language-server",
"eslint-lsp",
"html-lsp",
"lua-language-server",
"phpactor",
"sqlls",
"svelte-language-server",
"typescript-language-server",
},
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
})
end,
},
},
}