2024-07-14 20:30:12 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
|
|
|
|
|
|
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
|
|
|
|
# neotree
|
|
|
|
"neo-tree-nvim"
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:00:17 +02:00
|
|
|
visuals.nvimWebDevicons.enable = true;
|
|
|
|
|
2024-07-20 10:30:48 +02:00
|
|
|
pluginRC.neo-tree = entryAnywhere ''
|
2024-07-14 20:30:12 +02:00
|
|
|
require("neo-tree").setup(${toLuaObject cfg.setupOpts})
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|