mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 12:24:28 +02:00
plugins/barbar: add keymaps options + tests (#276)
This commit is contained in:
parent
09a2e9afb6
commit
c300601dce
2 changed files with 133 additions and 13 deletions
78
tests/plugins/barbar.nix
Normal file
78
tests/plugins/barbar.nix
Normal file
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.barbar.enable = true;
|
||||
};
|
||||
|
||||
keymappings = {
|
||||
plugins.barbar = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
|
||||
next = "<TAB>";
|
||||
previous = "<S-TAB>";
|
||||
close = "<C-w>";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# All the upstream default options of barbar
|
||||
defaults = {
|
||||
plugins.barbar = {
|
||||
animations = true;
|
||||
autoHide = false;
|
||||
tabpages = true;
|
||||
closable = true;
|
||||
clickable = true;
|
||||
diagnostics = {
|
||||
error = {
|
||||
enable = false;
|
||||
icon = "Ⓧ ";
|
||||
};
|
||||
warn = {
|
||||
enable = false;
|
||||
icon = "⚠️ ";
|
||||
};
|
||||
info = {
|
||||
enable = false;
|
||||
icon = "ⓘ ";
|
||||
};
|
||||
hint = {
|
||||
enable = false;
|
||||
icon = "💡";
|
||||
};
|
||||
};
|
||||
excludeFileTypes = [];
|
||||
excludeFileNames = [];
|
||||
hide = {
|
||||
extensions = false;
|
||||
inactive = false;
|
||||
alternate = false;
|
||||
current = false;
|
||||
visible = false;
|
||||
};
|
||||
highlightAlternate = false;
|
||||
highlightInactiveFileIcons = false;
|
||||
highlightVisible = true;
|
||||
icons = {
|
||||
enable = true;
|
||||
customColors = false;
|
||||
separatorActive = "▎";
|
||||
separatorInactive = "▎";
|
||||
separatorVisible = "▎";
|
||||
closeTab = "";
|
||||
closeTabModified = "●";
|
||||
pinned = "車";
|
||||
};
|
||||
insertAtEnd = false;
|
||||
insertAtStart = false;
|
||||
maximumPadding = 4;
|
||||
minimumPadding = 1;
|
||||
maximumLength = 30;
|
||||
semanticLetters = true;
|
||||
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP";
|
||||
noNameTitle = null;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue