feat: Add config opt 'ignore_install'

This option allows the caller to define a list of conform formatters
that should be ignored during the install process. This might be useful
if the caller already have this tools installed and prefer not to have
them downloaded again by mason.
This commit is contained in:
Andreas Palm
2024-05-19 13:22:23 +02:00
parent 3ba75eeae8
commit 882a4449e5
3 changed files with 21 additions and 3 deletions
+10 -2
View File
@@ -1,7 +1,15 @@
local M = {}
function M.setup()
require "mason-conform.auto_install" ()
M.config = {
ignore_install = {}
}
function M.setup(cfg)
if cfg and cfg.ignore_install then
M.config.ignore_install = cfg.ignore_install
end
require("mason-conform.auto_install")()
end
return M