mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-24 06:29:48 +01:00
19 lines
810 B
Nix
19 lines
810 B
Nix
{lib, ...}:
|
|
with lib;
|
|
with builtins; {
|
|
options.vim.tabline.nvimBufferline = {
|
|
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";
|
|
};
|
|
|
|
enable = mkEnableOption "Enable nvim-bufferline-lua as a bufferline";
|
|
};
|
|
}
|