mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
plugins/chadtree: init + test (#475)
* plugins/chadtre: init + test * Update tests/test-sources/plugins/filetrees/chadtree.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Removed with helpers * Update tests/test-sources/plugins/filetrees/chadtree.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * Update plugins/filetrees/chadtree.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * retrigger checks * Update tests/test-sources/plugins/filetrees/chadtree.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> --------- Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
efa95334e6
commit
0d2a436255
4 changed files with 543 additions and 1 deletions
109
tests/test-sources/plugins/filetrees/chadtree.nix
Normal file
109
tests/test-sources/plugins/filetrees/chadtree.nix
Normal file
|
@ -0,0 +1,109 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.chadtree.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.chadtree = {
|
||||
enable = true;
|
||||
|
||||
options = {
|
||||
follow = true;
|
||||
mimetypes = {
|
||||
warn = ["audio" "font" "image" "video"];
|
||||
allowExts = [".ts"];
|
||||
};
|
||||
pageIncrement = 5;
|
||||
pollingRate = 2.0;
|
||||
session = true;
|
||||
showHidden = false;
|
||||
versionControl = true;
|
||||
ignore = {
|
||||
nameExact = [".DS_Store" ".directory" "thumbs.db" ".git"];
|
||||
nameGlob = [];
|
||||
pathGlob = [];
|
||||
};
|
||||
};
|
||||
view = {
|
||||
openDirection = "left";
|
||||
sortBy = ["is_folder" "ext" "file_name"];
|
||||
width = 40;
|
||||
windowOptions = {
|
||||
cursorline = true;
|
||||
number = false;
|
||||
relativenumber = false;
|
||||
signcolumn = "no";
|
||||
winfixwidth = true;
|
||||
wrap = false;
|
||||
};
|
||||
};
|
||||
theme = {
|
||||
highlights = {
|
||||
ignored = "Comment";
|
||||
bookmarks = "Title";
|
||||
quickfix = "Label";
|
||||
versionControl = "Comment";
|
||||
};
|
||||
iconGlyphSet = "devicons";
|
||||
textColourSet = "env";
|
||||
iconColourSet = "github";
|
||||
};
|
||||
keymap = {
|
||||
windowManagement = {
|
||||
quit = ["q"];
|
||||
bigger = ["+" "="];
|
||||
smaller = ["-" "_"];
|
||||
refresh = ["<c-r>"];
|
||||
};
|
||||
rerooting = {
|
||||
changeDir = ["b"];
|
||||
changeFocus = ["c"];
|
||||
changeFocusUp = ["C"];
|
||||
};
|
||||
openFileFolder = {
|
||||
primary = ["<enter>"];
|
||||
secondary = ["<tab>" "<2-leftmouse>"];
|
||||
tertiary = ["<m-enter>" "<middlemouse>"];
|
||||
vSplit = ["w"];
|
||||
hSplit = ["W"];
|
||||
openSys = ["o"];
|
||||
collapse = ["o"];
|
||||
};
|
||||
cursor = {
|
||||
refocus = ["~"];
|
||||
jumpToCurrent = ["J"];
|
||||
stat = ["K"];
|
||||
copyName = ["y"];
|
||||
copyBasename = ["Y"];
|
||||
copyRelname = ["<c-y>"];
|
||||
};
|
||||
filtering = {
|
||||
filter = ["f"];
|
||||
clearFilter = ["F"];
|
||||
};
|
||||
bookmarks = {
|
||||
bookmarkGoto = ["m"];
|
||||
};
|
||||
selecting = {
|
||||
select = ["s"];
|
||||
clearSelection = ["S"];
|
||||
};
|
||||
fileOperations = {
|
||||
new = ["a"];
|
||||
link = ["A"];
|
||||
rename = ["r"];
|
||||
toggleExec = ["X"];
|
||||
copy = ["p"];
|
||||
cut = ["x"];
|
||||
delete = ["d"];
|
||||
trash = ["t"];
|
||||
};
|
||||
toggles = {
|
||||
toggleHidden = ["."];
|
||||
toggleFollow = ["u"];
|
||||
toggleVersionControl = ["i"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue