From 917ecac9005131d56602c4727e55ef7d8ae438fb Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 23 Dec 2023 22:03:51 +0100 Subject: [PATCH] added more vim-like keybinds in which key --- nvim/lua/settings/lazy/plugins/which-key.lua | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/nvim/lua/settings/lazy/plugins/which-key.lua b/nvim/lua/settings/lazy/plugins/which-key.lua index e65535b..71b2c74 100644 --- a/nvim/lua/settings/lazy/plugins/which-key.lua +++ b/nvim/lua/settings/lazy/plugins/which-key.lua @@ -5,4 +5,32 @@ return { vim.o.timeout = true vim.o.timeoutlen = 0 end, + config = function() + require("which-key").register({ + [""] = { + ":write", + "Persist the content of the current buffer to the file system" + }, + [""] = { + ":quitall", + "Quit the editor with confirmation" + }, + [""] = { + "h", + "Move to the window on the left" + }, + [""] = { + "l", + "Move to the window on the right" + }, + [""] = { + "k", + "Move to the window on the top" + }, + [""] = { + "j", + "Move to the window on the bottom" + } + }) + end }