2024-07-14 18:30:12 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
|
|
|
|
cfg = config.vim.filetree.neo-tree;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim = {
|
|
|
|
startPlugins = [
|
|
|
|
# dependencies
|
|
|
|
"plenary-nvim" # commons library
|
|
|
|
"image-nvim" # optional for image previews
|
|
|
|
"nui-nvim" # ui library
|
|
|
|
];
|
|
|
|
|
2024-10-17 15:17:18 +00:00
|
|
|
lazy.plugins.neo-tree-nvim = {
|
|
|
|
package = "neo-tree-nvim";
|
|
|
|
setupModule = "neo-tree";
|
|
|
|
inherit (cfg) setupOpts;
|
2024-10-06 18:51:33 +00:00
|
|
|
|
2024-10-17 15:17:18 +00:00
|
|
|
cmd = ["Neotree"];
|
|
|
|
};
|
2024-10-04 14:00:17 +00:00
|
|
|
|
2024-10-06 18:51:33 +00:00
|
|
|
visuals.nvimWebDevicons.enable = true;
|
2024-07-14 18:30:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|