Which-key

pull/102/head
Jules Sang 2023-03-28 18:22:29 +02:00
parent 9ad6acdff1
commit 31c29f1bb5
1 changed files with 18 additions and 0 deletions

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