mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/barbar: switch to mkNeovimPlugin + update options
This commit is contained in:
parent
513b3c76e2
commit
1c270521ad
2 changed files with 733 additions and 281 deletions
|
@ -8,11 +8,12 @@
|
|||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
|
||||
next = "<TAB>";
|
||||
previous = "<S-TAB>";
|
||||
close = "<C-w>";
|
||||
next.key = "<TAB>";
|
||||
previous.key = "<S-TAB>";
|
||||
close = {
|
||||
key = "<C-w>";
|
||||
options.desc = "Barbar close tab";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -21,51 +22,200 @@
|
|||
plugins.barbar = {
|
||||
enable = true;
|
||||
|
||||
animation = true;
|
||||
autoHide = false;
|
||||
clickable = true;
|
||||
excludeFileTypes = [ ];
|
||||
excludeFileNames = [ ];
|
||||
focusOnClose = "left";
|
||||
hide = { };
|
||||
highlightAlternate = false;
|
||||
highlightInactiveFileIcons = false;
|
||||
highlightVisible = true;
|
||||
icons = {
|
||||
bufferIndex = false;
|
||||
bufferNumber = false;
|
||||
button = "";
|
||||
diagnostics = { };
|
||||
filetype = {
|
||||
enable = true;
|
||||
settings = {
|
||||
animation = true;
|
||||
auto_hide = -1;
|
||||
clickable = true;
|
||||
exclude_ft = [ ];
|
||||
exclude_name = [ ];
|
||||
focus_on_close = "left";
|
||||
hide = {
|
||||
alternate = false;
|
||||
current = false;
|
||||
extensions = false;
|
||||
inactive = false;
|
||||
visible = false;
|
||||
};
|
||||
inactive = {
|
||||
highlight_alternate = false;
|
||||
highlight_inactive_file_icons = false;
|
||||
highlight_visible = true;
|
||||
icons = {
|
||||
buffer_index = false;
|
||||
buffer_number = false;
|
||||
button = "";
|
||||
diagnostics = {
|
||||
"vim.diagnostic.severity.ERROR" = {
|
||||
enabled = false;
|
||||
icon = " ";
|
||||
};
|
||||
"vim.diagnostic.severity.HINT" = {
|
||||
enabled = false;
|
||||
icon = " ";
|
||||
};
|
||||
"vim.diagnostic.severity.INFO" = {
|
||||
enabled = false;
|
||||
icon = " ";
|
||||
};
|
||||
"vim.diagnostic.severity.WARN" = {
|
||||
enabled = false;
|
||||
icon = " ";
|
||||
};
|
||||
};
|
||||
gitsigns = {
|
||||
added = {
|
||||
enabled = true;
|
||||
icon = "+";
|
||||
};
|
||||
changed = {
|
||||
enabled = true;
|
||||
icon = "~";
|
||||
};
|
||||
deleted = {
|
||||
enabled = true;
|
||||
icon = "-";
|
||||
};
|
||||
};
|
||||
filename = true;
|
||||
filetype = {
|
||||
custom_colors = false;
|
||||
enabled = true;
|
||||
};
|
||||
separator = {
|
||||
left = "▎";
|
||||
right = "";
|
||||
separator_at_end = true;
|
||||
};
|
||||
pinned = {
|
||||
button = false;
|
||||
filename = false;
|
||||
separator.right = " ";
|
||||
};
|
||||
alternate = { };
|
||||
current = { };
|
||||
inactive = { };
|
||||
visible = { };
|
||||
preset = "default";
|
||||
};
|
||||
insert_at_start = false;
|
||||
insert_at_end = false;
|
||||
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP";
|
||||
maximum_padding = 4;
|
||||
maximum_length = 30;
|
||||
minimum_length = 0;
|
||||
minimum_padding = 1;
|
||||
no_name_title = null;
|
||||
semantic_letters = true;
|
||||
sidebar_filetypes = { };
|
||||
tabpages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
readme-example = {
|
||||
plugins.barbar = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
animation = true;
|
||||
auto_hide = false;
|
||||
tabpages = true;
|
||||
clickable = true;
|
||||
exclude_ft = [ "javascript" ];
|
||||
exclude_name = [ "package.json" ];
|
||||
focus_on_close = "left";
|
||||
hide = {
|
||||
extensions = true;
|
||||
inactive = true;
|
||||
};
|
||||
highlight_alternate = false;
|
||||
highlight_inactive_file_icons = false;
|
||||
highlight_visible = true;
|
||||
icons = {
|
||||
buffer_index = false;
|
||||
buffer_number = false;
|
||||
button = "";
|
||||
diagnostics = {
|
||||
"vim.diagnostic.severity.ERROR" = {
|
||||
enabled = true;
|
||||
icon = "ff";
|
||||
};
|
||||
"vim.diagnostic.severity.WARN".enabled = false;
|
||||
"vim.diagnostic.severity.INFO".enabled = false;
|
||||
"vim.diagnostic.severity.HINT".enabled = true;
|
||||
};
|
||||
gitsigns = {
|
||||
added = {
|
||||
enabled = true;
|
||||
icon = "+";
|
||||
};
|
||||
changed = {
|
||||
enabled = true;
|
||||
icon = "~";
|
||||
};
|
||||
deleted = {
|
||||
enabled = true;
|
||||
icon = "-";
|
||||
};
|
||||
};
|
||||
filetype = {
|
||||
custom_colors = false;
|
||||
enabled = true;
|
||||
};
|
||||
separator = {
|
||||
left = "▎";
|
||||
right = "";
|
||||
};
|
||||
separator_at_end = true;
|
||||
modified = {
|
||||
button = "●";
|
||||
};
|
||||
pinned = {
|
||||
button = "";
|
||||
filename = true;
|
||||
};
|
||||
preset = "default";
|
||||
alternate = {
|
||||
filetype = {
|
||||
enabled = false;
|
||||
};
|
||||
};
|
||||
current = {
|
||||
buffer_index = true;
|
||||
};
|
||||
inactive = {
|
||||
button = "×";
|
||||
};
|
||||
visible = {
|
||||
modified = {
|
||||
buffer_number = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
modified = {
|
||||
button = "●";
|
||||
};
|
||||
pinned = {
|
||||
button = "";
|
||||
};
|
||||
separator = {
|
||||
left = "▎";
|
||||
right = "";
|
||||
insert_at_end = false;
|
||||
insert_at_start = false;
|
||||
maximum_padding = 1;
|
||||
minimum_padding = 1;
|
||||
maximum_length = 30;
|
||||
minimum_length = 0;
|
||||
semantic_letters = true;
|
||||
sidebar_filetypes = {
|
||||
NvimTree = true;
|
||||
undotree = {
|
||||
text = "undotree";
|
||||
align = "center";
|
||||
};
|
||||
neo-tree = {
|
||||
event = "BufWipeout";
|
||||
};
|
||||
Outline = {
|
||||
event = "BufWinLeave";
|
||||
text = "symbols-outline";
|
||||
align = "right";
|
||||
};
|
||||
};
|
||||
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP";
|
||||
no_name_title = null;
|
||||
};
|
||||
insertAtEnd = false;
|
||||
insertAtStart = false;
|
||||
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP";
|
||||
maximumLength = 30;
|
||||
maximumPadding = 4;
|
||||
minimumPadding = 1;
|
||||
noNameTitle = null;
|
||||
semanticLetters = true;
|
||||
sidebarFiletypes = { };
|
||||
tabpages = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue