local M = { "williamboman/mason.nvim", event = "VeryLazy", } M.tools = { "lua-language-server", -- "prettier", } function M.check() local mr = require("mason-registry") for _, tool in ipairs(M.tools) do local p = mr.get_package(tool) if not p:is_installed() then p:install() end end end function M.config() require("mason").setup({ ui = { border = "rounded" } }) M.check() end return M