mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 18:02:13 +02:00
added more vim-like keybinds in which key
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user