2023-01-29 17:06:54 +01:00
|
|
|
dofile(vim.g.base46_cache .. "whichkey")
|
2022-06-14 14:06:27 +02:00
|
|
|
|
2022-05-29 11:38:53 +02:00
|
|
|
local options = {
|
2022-05-12 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02: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 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02: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 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02:00
|
|
|
window = {
|
|
|
|
border = "none", -- none/single/double/shadow
|
|
|
|
},
|
2022-05-12 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02:00
|
|
|
layout = {
|
|
|
|
spacing = 6, -- spacing between columns
|
|
|
|
},
|
2022-05-12 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02:00
|
|
|
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " },
|
2022-05-12 14:56:01 +02:00
|
|
|
|
2022-07-22 18:00:00 +02:00
|
|
|
triggers_blacklist = {
|
|
|
|
-- list of mode / prefixes that should never be hooked by WhichKey
|
|
|
|
i = { "j", "k" },
|
|
|
|
v = { "j", "k" },
|
|
|
|
},
|
2022-05-12 14:56:01 +02:00
|
|
|
}
|
|
|
|
|
2022-05-29 12:37:47 +02:00
|
|
|
options = require("core.utils").load_override(options, "folke/which-key.nvim")
|
2022-05-26 17:49:13 +02:00
|
|
|
|
2023-01-25 15:41:55 +01:00
|
|
|
require("which-key").setup(options)
|