2022-05-29 05:38:53 -04:00
|
|
|
local present, wk = pcall(require, "which-key")
|
2022-05-25 03:06:58 -04:00
|
|
|
|
2022-05-29 05:38:53 -04:00
|
|
|
if not present then
|
2022-07-22 12:00:00 -04:00
|
|
|
return
|
2022-05-29 05:38:53 -04:00
|
|
|
end
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-11-17 08:56:43 -05:00
|
|
|
require "base46_cache.whichkey"
|
2022-06-14 08:06:27 -04:00
|
|
|
|
2022-05-29 05:38:53 -04:00
|
|
|
local options = {
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
icons = {
|
|
|
|
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
|
|
|
|
separator = " ", -- symbol used between a key and it's label
|
|
|
|
group = "+", -- symbol prepended to a group
|
|
|
|
},
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
popup_mappings = {
|
|
|
|
scroll_down = "<c-d>", -- binding to scroll down inside the popup
|
|
|
|
scroll_up = "<c-u>", -- binding to scroll up inside the popup
|
|
|
|
},
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
window = {
|
|
|
|
border = "none", -- none/single/double/shadow
|
|
|
|
},
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
layout = {
|
|
|
|
spacing = 6, -- spacing between columns
|
|
|
|
},
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " },
|
2022-05-12 08:56:01 -04:00
|
|
|
|
2022-07-22 12:00:00 -04:00
|
|
|
triggers_blacklist = {
|
|
|
|
-- list of mode / prefixes that should never be hooked by WhichKey
|
|
|
|
i = { "j", "k" },
|
|
|
|
v = { "j", "k" },
|
|
|
|
},
|
2022-05-12 08:56:01 -04:00
|
|
|
}
|
|
|
|
|
2022-05-29 06:37:47 -04:00
|
|
|
options = require("core.utils").load_override(options, "folke/which-key.nvim")
|
2022-05-26 11:49:13 -04:00
|
|
|
|
2022-05-29 05:38:53 -04:00
|
|
|
wk.setup(options)
|