Which-key

This commit is contained in:
Jules Sang 2023-03-28 18:22:29 +02:00
parent 9ad6acdff1
commit 31c29f1bb5

18
lua/plugins/which-key.lua Normal file
View file

@ -0,0 +1,18 @@
return {
"folke/which-key.nvim",
config = function()
local wk = require("which-key")
local mappings = {
w = {
h = { "<cmd>:wincmd h<cr>", "Jump left" },
j = { "<cmd>:wincmd j<cr>", "Jump bottom" },
k = { "<cmd>:wincmd k<cr>", "Jump up" },
l = { "<cmd>:wincmd l<cr>", "Jump right" },
},
}
wk.register(mappings, { mode = "n", prefix = "<leader>" })
wk.register(mappings, { mode = "v", prefix = "<leader>" })
end,
}