added more vim-like keybinds in which key

This commit is contained in:
aminnairi
2023-12-23 22:03:51 +01:00
parent c9bb9c3b93
commit 917ecac900
@@ -5,4 +5,32 @@ return {
vim.o.timeout = true vim.o.timeout = true
vim.o.timeoutlen = 0 vim.o.timeoutlen = 0
end, end,
config = function()
require("which-key").register({
["<C-s>"] = {
":write",
"Persist the content of the current buffer to the file system"
},
["<C-q>"] = {
":quitall",
"Quit the editor with confirmation"
},
["<C-h>"] = {
"<C-w>h",
"Move to the window on the left"
},
["<C-l>"] = {
"<C-w>l",
"Move to the window on the right"
},
["<C-k>"] = {
"<C-w>k",
"Move to the window on the top"
},
["<C-j>"] = {
"<C-w>j",
"Move to the window on the bottom"
}
})
end
} }