Files
astronvim_config/which-key/register.lua
2023-02-13 15:55:27 +02:00

15 lines
445 B
Lua

-- Modify which-key registration
-- Add bindings which show up as group name
return {
-- first key is the mode, n == normal mode
n = {
-- second key is the prefix, <leader> prefixes
["<leader>"] = {
-- third key is the key to bring up next level and its displayed
-- group name in which-key top level menu
["n"] = { "<cmd>tabnew<cr>", "New Buffer" },
["z"] = { "<cmd>ZenMode<cr>", "Zen Mode" },
},
},
}