Fixed mason tool installer startup
This commit is contained in:
parent
55e28be32c
commit
270a82f25c
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user