Files
neovim-config/lua/taken/plugins/whichkey.lua
2023-08-31 12:14:37 +02:00

49 lines
843 B
Lua

local status, whichkey = pcall(require, "which-key")
if not status then
return
end
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",
},
v = {
name = "lsp",
},
h = {
name = "theme",
},
},
})