Skip to content

Commit

Permalink
nvim/which-key: register additional window binds
Browse files Browse the repository at this point in the history
which-key only knows about registered keymaps and user-created keymaps.
Builtin binds without a remap aren't known to which-key unless
registered.

See folke/which-key.nvim#583
  • Loading branch information
MattSturgeon committed Sep 27, 2024
1 parent 6dd7a66 commit 9586bcb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions nvim/config/keymaps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,37 @@
proxy = "<C-w>";
group = "windows";
}
{
__unkeyed-1 = "<c-w>c";
desc = "Close current window";
}
{
__unkeyed-1 = "<c-w>H";
desc = "Move current window to the far left";
}
{
__unkeyed-1 = "<c-w>J";
desc = "Move current window to the very bottom";
}
{
__unkeyed-1 = "<c-w>K";
desc = "Move current window to the very top";
}
{
__unkeyed-1 = "<c-w>L";
desc = "Move current window to the far right";
}

{
__unkeyed-1 = "<leader>b";
group = "buffers";
}

{
__unkeyed-1 = "<leader>r";
group = "refactoring";
}

{
__unkeyed-1 = "<leader>f";
group = "files";
Expand Down

0 comments on commit 9586bcb

Please sign in to comment.