21 lines
482 B
Lua
21 lines
482 B
Lua
local M = {}
|
|
|
|
---@class MasonConformConfig
|
|
---@field ignore_install string[] Formatters that should never be installed automatically.
|
|
|
|
---@type MasonConformConfig
|
|
M.config = {
|
|
ignore_install = {},
|
|
}
|
|
|
|
---@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
|
|
|
|
return M
|