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, +}