mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
treewide: register whichKey labels
This commit is contained in:
parent
f19a5dd3ed
commit
b9aa7088b8
12 changed files with 69 additions and 12 deletions
|
@ -3,7 +3,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkMerge mkLuaBinding mkBinding nvim;
|
||||
inherit (lib) mkIf mkMerge mkLuaBinding mkBinding nvim defaultAttributes;
|
||||
|
||||
cfg = config.vim.tabline.nvimBufferline;
|
||||
self = import ./nvim-bufferline.nix {
|
||||
|
@ -40,6 +40,13 @@ in {
|
|||
(mkBinding cfg.mappings.movePrevious ":BufferLineMovePrev<CR>" mappings.movePrevious.description)
|
||||
];
|
||||
|
||||
vim.binds.whichKey.register = defaultAttributes {
|
||||
"<leader>b" = "+Buffer";
|
||||
"<leader>bm" = "BufferLineMove";
|
||||
"<leader>bs" = "BufferLineSort";
|
||||
"<leader>bsi" = "BufferLineSortById";
|
||||
};
|
||||
|
||||
vim.luaConfigRC.nvimBufferline = nvim.dag.entryAnywhere ''
|
||||
require("bufferline").setup{
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue