2023-11-07 01:50:27 +01:00
|
|
|
{lib, ...}: let
|
2024-03-12 01:47:41 +01:00
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2023-11-07 01:50:27 +01:00
|
|
|
in {
|
2023-02-27 20:28:18 +01:00
|
|
|
options.vim.tabline.nvimBufferline = {
|
2024-03-12 01:47:41 +01:00
|
|
|
enable = mkEnableOption "neovim bufferline";
|
2023-06-05 22:10:25 +02:00
|
|
|
|
2023-04-12 21:13:00 +02: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 20:28:18 +01:00
|
|
|
};
|
|
|
|
}
|