mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
feat:add_nixvim
This commit is contained in:
51
home/nixvim/plugins/editor/neotree.nix
Normal file
51
home/nixvim/plugins/editor/neotree.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
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)";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user