using the new format for which-key for window mappings

This commit is contained in:
aminnairi
2025-01-05 10:23:55 +01:00
parent fa59d07e87
commit 0e9cdbb8ef
@@ -7,12 +7,12 @@ return {
end,
config = function()
require("which-key").register({
{ "<C-h>", "<C-w>h", desc = "Move to the window on the left" },
{ "<C-j>", "<C-w>j", desc = "Move to the window on the bottom" },
{ "<C-k>", "<C-w>k", desc = "Move to the window on the top" },
{ "<C-l>", "<C-w>l", desc = "Move to the window on the right" },
{ "<C-q>", ":quitall<CR>", desc = "Quit the editor with confirmation" },
{ "<C-s>", ":write<CR>", desc = "Persist the content of the current buffer to the file system" },
{ "", "<C-l>", desc = "<C-w>l" },
{ "", "<C-h>", desc = "<C-w>h" },
{ "", "<C-j>", desc = "<C-w>j" },
{ "", "<C-s>", desc = ":write<CR>" },
{ "", "<C-q>", desc = ":quitall<CR>" },
{ "", "<C-k>", desc = "<C-w>k" },
})
end
}