Files
neovim-config/lua/taken/plugins/whichkey.lua
Taken 9556024c93 Added types
Signed-off-by: Taken <taken@mairimashita.org>
2024-03-17 16:34:11 +01:00

59 lines
1.4 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",
},
v = {
name = "lsp",
},
h = {
name = "theme",
},
},
})
end,
}