Skip to content

Commit

Permalink
fidget: lazy load
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Oct 5, 2024
1 parent 4736d9f commit b38e514
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions modules/plugins/visuals/fidget/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;

cfg = config.vim.visuals.fidget-nvim;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["fidget-nvim"];

vim.pluginRC.fidget-nvim = entryAnywhere ''
require'fidget'.setup(${toLuaObject cfg.setupOpts})
'';
vim.lazy = {
plugins = [
{
package = "fidget-nvim";
setupModule = "fidget";
event = "LspAttach";
inherit (cfg) setupOpts;
}
];
};
};
}

0 comments on commit b38e514

Please sign in to comment.