Added config file for whichkey plugin and
seperated opts for it.
This commit is contained in:
46
after/plugin/whichkey.lua
Normal file
46
after/plugin/whichkey.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
local status, whichkey = pcall(require, "which-key")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
whichkey.setup({
|
||||
key_labels = {
|
||||
["<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",
|
||||
},
|
||||
p = {
|
||||
name = "packer",
|
||||
},
|
||||
t = {
|
||||
name = "toggle",
|
||||
},
|
||||
v = {
|
||||
name = "lsp",
|
||||
},
|
||||
h = {
|
||||
name = "theme",
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user