From b696b9adddb0235bb0ebee61645f7d48a0998e1a Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sun, 1 Jun 2025 21:47:56 +0200 Subject: [PATCH] Fixed mason tool installer startup --- .../dot-config/nvim/lua/plugins/mason-tool-installer.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nvim/dot-config/nvim/lua/plugins/mason-tool-installer.lua b/nvim/dot-config/nvim/lua/plugins/mason-tool-installer.lua index 4d74891..2cdb506 100644 --- a/nvim/dot-config/nvim/lua/plugins/mason-tool-installer.lua +++ b/nvim/dot-config/nvim/lua/plugins/mason-tool-installer.lua @@ -28,13 +28,18 @@ local ensure_installed = { --- @type LazySpec return { "WhoIsSethDaniel/mason-tool-installer.nvim", - event = "VeryLazy", dependencies = { "mason-org/mason.nvim", }, + event = "VeryLazy", opts = { ensure_installed = ensure_installed, 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, }