fidget: lazy load

This commit is contained in:
Ching Pei Yang 2024-09-30 21:59:19 +02:00 committed by Ching Pei Yang
parent f7b099e6f8
commit d649939b24
No known key found for this signature in database
GPG key ID: 062FBBCE1D0C5DD9

View file

@ -4,16 +4,17 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.visuals.fidget-nvim; cfg = config.vim.visuals.fidget-nvim;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim.startPlugins = ["fidget-nvim"]; vim.lazy.plugins = [
{
vim.pluginRC.fidget-nvim = entryAnywhere '' package = "fidget-nvim";
require'fidget'.setup(${toLuaObject cfg.setupOpts}) setupModule = "fidget";
''; event = "LspAttach";
inherit (cfg) setupOpts;
}
];
}; };
} }