Files
DCGOS/home/nixvim/plugins/editor/neotree.nix
2025-09-21 15:54:31 +08:00

52 lines
1.1 KiB
Nix

{
plugins.neo-tree = {
enable = true;
closeIfLastWindow = true;
sources = [
"filesystem"
"buffers"
"git_status"
"document_symbols"
];
popupBorderStyle = "rounded"; # “NC”, “double”, “none”, “rounded”, “shadow”, “single”, “solid” or raw lua code
filesystem = {
bindToCwd = false;
useLibuvFileWatcher = true;
followCurrentFile.enabled = true;
};
defaultComponentConfigs = {
gitStatus = {
symbols = {
added = " ";
conflict = "󰩌 ";
deleted = "󱂥 ";
ignored = " ";
modified = " ";
renamed = " ";
staged = " ";
unstaged = " ";
untracked = " ";
};
};
};
window.mappings = {
"<space>" = "none";
};
};
keymaps = [
{
mode = "n";
key = "<leader>e";
action = "<cmd>Neotree toggle<cr>";
options = {
silent = true;
desc = "Explorer NeoTree (root dir)";
};
}
];
}