nixvim/config/plugins/editor/neo-tree.nix
Roel de Cort b7d1a54e43
patch: fixes (#34)
- Fixed Luanne, as it was not configured correctly after the last
refactor (should've tested it correctly)
- Fixed small issue with separator in neo-tree
- Remove EOB character
2024-09-11 22:43:40 +02:00

46 lines
963 B
Nix

{
plugins.neo-tree = {
enable = true;
sources = ["filesystem" "buffers" "git_status" "document_symbols"];
addBlankLineAtTop = false;
filesystem = {
bindToCwd = false;
followCurrentFile = {
enabled = true;
};
};
defaultComponentConfigs = {
indent = {
withExpanders = true;
expanderCollapsed = "󰅂";
expanderExpanded = "󰅀";
expanderHighlight = "NeoTreeExpander";
};
gitStatus = {
symbols = {
added = " ";
conflict = "󰩌 ";
deleted = "󱂥";
ignored = " ";
modified = " ";
renamed = "󰑕";
staged = "󰩍";
unstaged = "";
untracked = " ";
};
};
};
};
keymaps = [
{
mode = ["n"];
key = "<leader>e";
action = "<cmd>Neotree toggle<cr>";
options = {desc = "Open/Close Neotree";};
}
];
}