From 31c29f1bb531f2ccf63f1a5f3dee134250b91bc7 Mon Sep 17 00:00:00 2001 From: Jules Sang Date: Tue, 28 Mar 2023 18:22:29 +0200 Subject: [PATCH] Which-key --- lua/plugins/which-key.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/plugins/which-key.lua diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua new file mode 100644 index 0000000..3ed23f9 --- /dev/null +++ b/lua/plugins/which-key.lua @@ -0,0 +1,18 @@ +return { + "folke/which-key.nvim", + config = function() + local wk = require("which-key") + + local mappings = { + w = { + h = { ":wincmd h", "Jump left" }, + j = { ":wincmd j", "Jump bottom" }, + k = { ":wincmd k", "Jump up" }, + l = { ":wincmd l", "Jump right" }, + }, + } + + wk.register(mappings, { mode = "n", prefix = "" }) + wk.register(mappings, { mode = "v", prefix = "" }) + end, +}