nix-community.nixvim/tests/test-sources/plugins/bufferlines/barbar.nix
Gaetan Lepage 34d56c712e plugins/barbar: add keymaps.* options for missing actions
Co-authored-by: Ismaïl Senhaji <134528+iSma@users.noreply.github.com>
2024-06-03 00:25:46 +02:00

222 lines
5.4 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
empty = {
plugins.barbar.enable = true;
};
keymappings = {
plugins.barbar = {
enable = true;
keymaps = {
next.key = "<TAB>";
previous.key = "<S-TAB>";
close = {
key = "<C-w>";
options.desc = "Barbar close tab";
};
restore.key = "<C-S-t>";
};
};
};
defaults = {
plugins.barbar = {
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;
};
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 = "";
};
"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;
};
};
};
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;
};
};
};
}