mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 10:15:59 +01:00
neo-tree: lazy load
This commit is contained in:
parent
4701bb15c5
commit
b7a34ad52b
1 changed files with 10 additions and 6 deletions
|
@ -4,8 +4,6 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
|
||||||
|
|
||||||
cfg = config.vim.filetree.neo-tree;
|
cfg = config.vim.filetree.neo-tree;
|
||||||
in {
|
in {
|
||||||
|
@ -20,11 +18,17 @@ in {
|
||||||
"neo-tree-nvim"
|
"neo-tree-nvim"
|
||||||
];
|
];
|
||||||
|
|
||||||
visuals.nvimWebDevicons.enable = true;
|
lazy.plugins = [
|
||||||
|
{
|
||||||
|
package = "neo-tree-nvim";
|
||||||
|
setupModule = "neo-tree";
|
||||||
|
inherit (cfg) setupOpts;
|
||||||
|
|
||||||
pluginRC.neo-tree = entryAnywhere ''
|
cmd = ["Neotree"];
|
||||||
require("neo-tree").setup(${toLuaObject cfg.setupOpts})
|
}
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
visuals.nvimWebDevicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue