mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
22 lines
424 B
Lua
22 lines
424 B
Lua
return {
|
|
"folke/which-key.nvim",
|
|
event = "VeryLazy",
|
|
init = function()
|
|
vim.o.timeout = true
|
|
vim.o.timeoutlen = 300
|
|
end,
|
|
opts = {
|
|
defaults = {
|
|
mode = { "n", "v" },
|
|
["<leader>r"] = { name = "+rename" },
|
|
["<leader>b"] = { name = "+buffers" },
|
|
["<leader>f"] = { name = "+files" },
|
|
}
|
|
},
|
|
config = function(_, opts)
|
|
local wk = require("which-key")
|
|
wk.setup(opts)
|
|
wk.register(opts.defaults)
|
|
end
|
|
}
|
|
|