2023-11-07 00:50:27 +00:00
|
|
|
{lib, ...}: let
|
2024-03-12 00:47:41 +00:00
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2023-02-27 19:28:18 +00:00
|
|
|
options.vim.tabline.nvimBufferline = {
|
2024-03-12 00:47:41 +00:00
|
|
|
enable = mkEnableOption "neovim bufferline";
|
2023-06-05 20:10:25 +00:00
|
|
|
|
2023-04-12 19:13:00 +00:00
|
|
|
mappings = {
|
|
|
|
closeCurrent = mkMappingOption "Close buffer" null;
|
|
|
|
cycleNext = mkMappingOption "Next buffer" "<leader>bn";
|
|
|
|
cyclePrevious = mkMappingOption "Previous buffer" "<leader>bp";
|
|
|
|
pick = mkMappingOption "Pick buffer" "<leader>bc";
|
|
|
|
sortByExtension = mkMappingOption "Sort buffers by extension" "<leader>bse";
|
|
|
|
sortByDirectory = mkMappingOption "Sort buffers by directory" "<leader>bsd";
|
|
|
|
sortById = mkMappingOption "Sort buffers by ID" "<leader>bsi";
|
|
|
|
moveNext = mkMappingOption "Move next buffer" "<leader>bmn";
|
|
|
|
movePrevious = mkMappingOption "Move previous buffer" "<leader>bmp";
|
|
|
|
};
|
2023-02-27 19:28:18 +00:00
|
|
|
};
|
|
|
|
}
|