mirror of
https://github.com/akr2002/nv.git
synced 2024-11-09 18:49:45 +00:00
107 lines
2.2 KiB
Nix
107 lines
2.2 KiB
Nix
{
|
|
plugins = {
|
|
bufferline = {
|
|
enable = true;
|
|
separatorStyle = "thick"; # "slant", "padded_slant", "slope", "padded_slope", "thick", "thin"
|
|
offsets = [
|
|
{
|
|
filetype = "neo-tree";
|
|
text = "Neo-tree";
|
|
highlight = "Directory";
|
|
text_align = "left";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<Tab>";
|
|
action = "<cmd>BufferLineCycleNext<cr>";
|
|
options = {
|
|
desc = "Cycle to next buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<S-Tab>";
|
|
action = "<cmd>BufferLineCyclePrev<cr>";
|
|
options = {
|
|
desc = "Cycle to previous buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<S-l>";
|
|
action = "<cmd>BufferLineCycleNext<cr>";
|
|
options = {
|
|
desc = "Cycle to next buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<S-h>";
|
|
action = "<cmd>BufferLineCyclePrev<cr>";
|
|
options = {
|
|
desc = "Cycle to previous buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bd";
|
|
action = "<cmd>bdelete<cr>";
|
|
options = {
|
|
desc = "Delete buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bb";
|
|
action = "<cmd>e #<cr>";
|
|
options = {
|
|
desc = "Switch to other buffer";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>br";
|
|
action = "<cmd>BufferLineCloseRight<cr>";
|
|
options = {
|
|
desc = "Delete buffers to the right";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bl";
|
|
action = "<cmd>BufferLineCloseLeft<cr>";
|
|
options = {
|
|
desc = "Delete buffers to the left";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bo";
|
|
action = "<cmd>BufferLneCloseOthers<cr>";
|
|
options = {
|
|
desc = "Delete other buffers";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bp";
|
|
action = "<cmd>BufferLineTogglePin<cr>";
|
|
options = {
|
|
desc = "Toggle pin";
|
|
};
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>bP";
|
|
action = "<cmd>BufferLineGroupClose ungrouped<cr>";
|
|
options = {
|
|
desc = "Delete non-pinned buffers";
|
|
};
|
|
}
|
|
];
|
|
}
|