mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 20:08:30 +00:00
fidget: lazy load
This commit is contained in:
parent
d7de60603f
commit
b9bea6edc8
2 changed files with 11 additions and 7 deletions
|
@ -114,6 +114,7 @@ isMaximal: {
|
|||
filetree = {
|
||||
nvimTree = {
|
||||
enable = true;
|
||||
openOnSetup = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue