1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/whichkey.lua

28 lines
523 B
Lua
Raw Normal View History

2022-12-27 20:45:43 +01:00
local M = {
"folke/which-key.nvim",
event = "VeryLazy",
}
2022-10-14 13:44:47 +02:00
2022-12-27 20:45:43 +01:00
function M.config()
local wk = require("which-key")
2022-10-09 03:28:51 +02:00
2022-10-14 13:44:47 +02:00
wk.setup({
2022-12-27 20:45:43 +01:00
triggers = { "<leader>", "d", "y", "q", "z", "g", "c" },
show_help = true,
show_keys = true,
2022-10-09 03:28:51 +02:00
})
2022-10-14 13:44:47 +02:00
2022-12-27 20:45:43 +01:00
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" },
v = "which_key_ignore",
},
})
2022-10-09 03:28:51 +02:00
end
return M