mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
fidget: lazy load
This commit is contained in:
parent
9a47b6f83d
commit
2f281cf07a
1 changed files with 10 additions and 7 deletions
|
@ -4,16 +4,19 @@
|
||||||
...
|
...
|
||||||
}: 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 ''
|
{
|
||||||
require'fidget'.setup(${toLuaObject cfg.setupOpts})
|
package = "fidget-nvim";
|
||||||
'';
|
setupModule = "fidget";
|
||||||
|
event = "LspAttach";
|
||||||
|
inherit (cfg) setupOpts;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue