.dots/nvim/.config/nvim/lua/lazy-plugins/ui-which-key.lua

24 lines
623 B
Lua

return {
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 500
end,
config = function()
local wk = require("which-key")
wk.add({
{ "<leader>b", group = "🗄️ Buffers" },
{ "<leader>c", group = "💻 Code" },
{ "<leader>e", group = "🌲 NeoTree" },
{ "<leader>f", group = "🔭 Telescope" },
{ "<leader>h", group = "✏️ Version control" },
{ "<leader>r", group = "🪐 LSP" },
{ "<leader>s", group = "🪟 Splits" },
{ "<leader>w", group = "💾 Session" },
{ "<leader>x", group = "🚧 Trouble" },
})
end,
opts = {},
}