mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 22:04:31 +02:00
plugins/navbuddy: init + tests (#600)
Co-authored-by: Haseeb Majid <haseeb.majid@imaginecurve.com> Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
05b77732e3
commit
19680bbfa1
3 changed files with 403 additions and 0 deletions
117
tests/test-sources/plugins/utils/navbuddy.nix
Normal file
117
tests/test-sources/plugins/utils/navbuddy.nix
Normal file
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.navbuddy.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.navbuddy = {
|
||||
enable = true;
|
||||
|
||||
window = {
|
||||
border = "rounded";
|
||||
size = {
|
||||
height = 50;
|
||||
width = 50;
|
||||
};
|
||||
position = {
|
||||
height = 50;
|
||||
width = 50;
|
||||
};
|
||||
scrolloff = 8;
|
||||
sections = {
|
||||
left = {
|
||||
size = 50;
|
||||
border = "rounded";
|
||||
};
|
||||
mid = {
|
||||
size = 50;
|
||||
border = "rounded";
|
||||
};
|
||||
right = {
|
||||
preview = "always";
|
||||
border = "rounded";
|
||||
};
|
||||
};
|
||||
};
|
||||
nodeMarkers = {
|
||||
enabled = true;
|
||||
icons = {
|
||||
leaf = " ... ";
|
||||
leafSelected = " ";
|
||||
branch = " ";
|
||||
};
|
||||
};
|
||||
icons = {
|
||||
File = " ";
|
||||
Module = " ";
|
||||
Namespace = " ";
|
||||
Package = " ";
|
||||
Class = " ";
|
||||
Method = " ";
|
||||
Property = " ";
|
||||
Field = " ";
|
||||
Constructor = " ";
|
||||
Enum = "";
|
||||
Interface = "";
|
||||
Function = " ";
|
||||
Variable = " ";
|
||||
Constant = " ";
|
||||
String = " ";
|
||||
Number = " ";
|
||||
Boolean = "◩ ";
|
||||
Array = " ";
|
||||
Object = " ";
|
||||
Key = " ";
|
||||
Null = " ";
|
||||
EnumMember = " ";
|
||||
Struct = " ";
|
||||
Event = " ";
|
||||
Operator = " ";
|
||||
TypeParameter = " ";
|
||||
};
|
||||
useDefaultMapping = false;
|
||||
mappings = {
|
||||
"<esc>" = "close";
|
||||
"q" = "close";
|
||||
"j" = "next_sibling";
|
||||
"k" = "previous_sibling";
|
||||
"h" = "parent";
|
||||
"l" = "children";
|
||||
"0" = "root";
|
||||
"v" = "visual_name";
|
||||
"V" = "visual_scope";
|
||||
"y" = "yank_name";
|
||||
"Y" = "yank_scope";
|
||||
"i" = "insert_name";
|
||||
"I" = "insert_scope";
|
||||
"a" = "append_name";
|
||||
"A" = "append_scope";
|
||||
"r" = "rename";
|
||||
"d" = "delete";
|
||||
"f" = "fold_create";
|
||||
"F" = "fold_delete";
|
||||
"c" = "comment";
|
||||
"<enter>" = "select";
|
||||
"o" = "select";
|
||||
"J" = "move_down";
|
||||
"K" = "move_up";
|
||||
"s" = "toggle_preview";
|
||||
"<C-v>" = "vsplit";
|
||||
"<C-s>" = "hsplit";
|
||||
};
|
||||
lsp = {
|
||||
autoAttach = true;
|
||||
preference = [
|
||||
"clang"
|
||||
"pyright"
|
||||
];
|
||||
};
|
||||
sourceBuffer = {
|
||||
followNode = true;
|
||||
highlight = true;
|
||||
reorient = "top";
|
||||
scrolloff = 8;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue