46 lines
987 B
Nix
46 lines
987 B
Nix
{ ... }:
|
|
{
|
|
programs.nixvim = {
|
|
keymaps = [
|
|
{
|
|
mode = [ "n" ];
|
|
key = "<A-h>";
|
|
action = ":BufferLineCyclePrev<CR>";
|
|
options = { noremap = true; silent = true; };
|
|
}
|
|
{
|
|
mode = [ "n" ];
|
|
key = "<A-l>";
|
|
action = ":BufferLineCycleNex<CR>";
|
|
options = { noremap = true; silent = true; };
|
|
}
|
|
{
|
|
mode = [ "n" ];
|
|
key = "<A-c>";
|
|
action = ":bdelete!<CR>";
|
|
options = { noremap = true; silent = true; };
|
|
}
|
|
];
|
|
|
|
plugins.bufferline = {
|
|
enable = true;
|
|
# extraOptions = {
|
|
settings = {
|
|
options = {
|
|
tabpages = true;
|
|
sidebar_filetypes = {
|
|
NvimTree = true;
|
|
};
|
|
diagnostics = "nvim_lsp";
|
|
always_show_bufferline = true;
|
|
};
|
|
highlights = {
|
|
buffer_selected = {
|
|
# fg = "#ffffff";
|
|
bold = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|