2023-01-10 02:38:06 +01:00
|
|
|
local M = {
|
|
|
|
"folke/which-key.nvim",
|
|
|
|
event = "VeryLazy",
|
|
|
|
}
|
|
|
|
|
|
|
|
function M.config()
|
|
|
|
local wk = require("which-key")
|
|
|
|
|
|
|
|
wk.setup({
|
|
|
|
window = {
|
2023-09-08 19:49:18 +02:00
|
|
|
winblend = 0,
|
|
|
|
pumblend = 0,
|
|
|
|
border = "single",
|
2023-01-10 02:38:06 +01:00
|
|
|
},
|
|
|
|
layout = { align = "center" },
|
|
|
|
})
|
|
|
|
|
|
|
|
wk.register({
|
|
|
|
["<leader>"] = {
|
|
|
|
f = { name = "[F]iles" },
|
|
|
|
g = { name = "[G]o to" },
|
|
|
|
r = { name = "[R]ename / [R]eplace / [R]eload" },
|
|
|
|
l = { name = "[L]ocal" },
|
|
|
|
w = { name = "[W]orkspace" },
|
|
|
|
y = { name = "[Y]ank" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|