55 lines
1.3 KiB
Lua
55 lines
1.3 KiB
Lua
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",
|
|
},
|
|
v = {
|
|
name = "lsp",
|
|
},
|
|
h = {
|
|
name = "theme",
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|