1
0
Fork 0

neovim: which-key

This commit is contained in:
Jeremy Kaplan 2024-12-06 18:38:47 -08:00
commit 8b15f3e9d5
2 changed files with 48 additions and 0 deletions

View file

@ -39,4 +39,5 @@
"vim-fugitive": { "branch": "master", "commit": "320b18fba2a4f2fe3c8225c778c687e0d2620384" }, "vim-fugitive": { "branch": "master", "commit": "320b18fba2a4f2fe3c8225c778c687e0d2620384" },
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" }, "vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
"which-key.nvim": { "branch": "main", "commit": "9b365a6428a9633e3eeb34dbef1b791511c54f70" }
} }

View file

@ -113,4 +113,51 @@ return {
check_ts = true, check_ts = true,
}, },
}, },
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
preset = "helix",
keys = {
Up = "",
Down = "",
Left = "",
Right = "",
C = "^",
M = "M-",
D = "W-",
S = "S-",
CR = "CR",
Esc = "Esc",
ScrollWheelDown = "",
ScrollWheelUp = "",
NL = "",
BS = "",
Space = "Space",
Tab = "Tab",
F1 = "F1",
F2 = "F2",
F3 = "F3",
F4 = "F4",
F5 = "F5",
F6 = "F6",
F7 = "F7",
F8 = "F8",
F9 = "F9",
F10 = "F10",
F11 = "F11",
F12 = "F12",
},
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
}
} }