48 lines
618 B
Lua
48 lines
618 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",
|
|
["<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",
|
|
},
|
|
},
|
|
})
|