REFACTOR: Updated from older config

This commit is contained in:
2026-10-10 05:54:27 -04:00
parent 48da2ebd5e
commit 132a3d0630
9 changed files with 444 additions and 84 deletions
+10 -5
View File
@@ -1,13 +1,18 @@
local M = {}
---@class MasonConformConfig
---@field ignore_install string[] Formatters that should never be installed automatically.
---@type MasonConformConfig
M.config = {
ignore_install = {}
ignore_install = {},
}
function M.setup(cfg)
if cfg and cfg.ignore_install then
M.config.ignore_install = cfg.ignore_install
end
---@param opts? MasonConformConfig Options overriding the defaults.
function M.setup(opts)
vim.validate("opts", opts, "table", true)
M.config = vim.tbl_deep_extend("force", { ignore_install = {} }, opts or {})
require("mason-conform.auto_install")()
end