mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 14:32:13 +02:00
37 lines
771 B
Lua
37 lines
771 B
Lua
return {
|
|
"folke/which-key.nvim",
|
|
event = "VeryLazy",
|
|
init = function()
|
|
vim.o.timeout = true
|
|
vim.o.timeoutlen = 0
|
|
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
|
|
}
|