Astronvim config from kabinspace/AstroNvim_user

This commit is contained in:
Ismo Vuorinen
2023-02-13 15:55:27 +02:00
parent f502b5458f
commit b1d979df34
33 changed files with 1646 additions and 19 deletions

14
which-key/register.lua Normal file
View File

@@ -0,0 +1,14 @@
-- 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" },
},
},
}