Fixed mason tool installer startup

This commit is contained in:
Dreaded_X 2025-06-01 21:47:56 +02:00
parent 55e28be32c
commit 270a82f25c
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -22,19 +22,25 @@ local ensure_installed = {
"prettierd", "prettierd",
"stylua", "stylua",
"jq", "jq",
"xmlformatter",
} }
--- @module "lazy" --- @module "lazy"
--- @type LazySpec --- @type LazySpec
return { return {
"WhoIsSethDaniel/mason-tool-installer.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim",
event = "VeryLazy",
dependencies = { dependencies = {
"mason-org/mason.nvim", "mason-org/mason.nvim",
}, },
event = "VeryLazy",
opts = { opts = {
ensure_installed = ensure_installed, ensure_installed = ensure_installed,
auto_update = true, auto_update = true,
debounde_hours = 24,
}, },
config = function(_, opts)
require("mason-tool-installer").setup(opts)
-- VeryLazy happens _after_ VimEnter, so we have to manually call this
require("mason-tool-installer").run_on_start()
end,
} }