Files
neovim-config/lua/taken/plugins/whichkey.lua
2024-03-23 18:40:03 +01:00

56 lines
1.3 KiB
Lua

--- @type LazyPluginSpec
return {
"folke/which-key.nvim",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
config = function()
local whichkey = require("which-key")
whichkey.setup({
key_labels = {
["<leader>"] = "SPC",
["<space>"] = "SPC",
["<cr>"] = "RET",
["<CR>"] = "RET",
["<Tab>"] = "TAB",
},
icons = {
breadcrumb = "»",
separator = "",
group = "",
},
})
whichkey.register({
["<leader>"] = {
w = {
name = "window",
},
f = {
name = "find",
},
b = {
name = "buffer",
},
g = {
name = "git",
},
l = {
name = "lazy",
},
t = {
name = "toggle",
},
p = {
name = "project",
},
h = {
name = "theme",
},
},
})
end,
}