mirror of
https://github.com/akr2002/nv.git
synced 2024-12-27 08:32:53 +00:00
add neotree
This commit is contained in:
parent
e50b077728
commit
020a9671ac
2 changed files with 71 additions and 1 deletions
|
@ -9,9 +9,14 @@
|
|||
./completion/cmp.nix
|
||||
./completion/lspkind.nix
|
||||
|
||||
./sets.nix
|
||||
./dap/dap.nix
|
||||
|
||||
./filetrees/neo-tree.nix
|
||||
|
||||
./keymaps.nix
|
||||
|
||||
./sets.nix
|
||||
|
||||
./ui/nvim-notify.nix
|
||||
];
|
||||
}
|
||||
|
|
65
config/filetrees/neo-tree.nix
Normal file
65
config/filetrees/neo-tree.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
enableDiagnostics = true;
|
||||
enableGitStatus = true;
|
||||
enableModifiedMarkers = true;
|
||||
enableRefreshOnWrite = true;
|
||||
closeIfLastWindow = true;
|
||||
popupBorderStyle = "rounded"; # Type: null or one of “NC”, “double”, “none”, “rounded”, “shadow”, “single”, “solid” or raw lua code
|
||||
buffers = {
|
||||
bindToCwd = false;
|
||||
followCurrentFile = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
window = {
|
||||
width = 40;
|
||||
height = 15;
|
||||
autoExpandWidth = false;
|
||||
mappings = {
|
||||
"<space>" = "none";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# keymaps = [
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>e";
|
||||
# action = ":Neotree toggle reveal_force_cwd<cr>";
|
||||
# options = {
|
||||
# silent = true;
|
||||
# desc = "Explorer NeoTree (root dir)";
|
||||
# };
|
||||
# }
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>E";
|
||||
# action = "<cmd>Neotree toggle<CR>";
|
||||
# options = {
|
||||
# silent = true;
|
||||
# desc = "Explorer NeoTree (cwd)";
|
||||
# };
|
||||
# }
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>be";
|
||||
# action = ":Neotree buffers<CR>";
|
||||
# options = {
|
||||
# silent = true;
|
||||
# desc = "Buffer explorer";
|
||||
# };
|
||||
# }
|
||||
# {
|
||||
# mode = "n";
|
||||
# key = "<leader>ge";
|
||||
# action = ":Neotree git_status<CR>";
|
||||
# options = {
|
||||
# silent = true;
|
||||
# desc = "Git explorer";
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
}
|
||||
|
Loading…
Reference in a new issue