Files
scripts/nvim/lua/plugins/whichkey.lua
T
adamfandClaude Fable 5 5b354f172e Clean up nvim config: drop duplicate plugins, simplify colorscheme setup
- Remove nvim-autopairs (LazyVim's mini.pairs already handles pairing)
- Remove spectre (superseded by LazyVim's grug-far, conflicted on <leader>sr)
- Remove todo-comments override (LazyVim default covers it; <leader>st
  pointed at TodoTelescope, which is broken without telescope)
- Trim colorscheme.lua to oxocarbon only, set via LazyVim opts; fix
  install colorscheme in lazy.lua
- Delete disabled greggh/claude-code.nvim spec
- Drop obsolete which-key config function and empty defaults table
- Tile vertically for any multi-file open, not just exactly two
- Add stylua.toml and format all lua to 2-space indent

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-07 13:11:02 +01:00

61 lines
1.8 KiB
Lua

return {
{
"folke/which-key.nvim",
event = "VeryLazy",
opts_extend = { "spec" },
opts = {
preset = "helix",
spec = {
{
mode = { "n", "x" },
{ "<leader><tab>", group = "tabs" },
{ "<leader>c", group = "code" },
{ "<leader>d", group = "debug" },
{ "<leader>dp", group = "profiler" },
{ "<leader>f", group = "file/find" },
{ "<leader>g", group = "git" },
{ "<leader>gh", group = "hunks" },
{ "<leader>q", group = "quit/session" },
{ "<leader>s", group = "search" },
{ "<leader>u", group = "ui" },
{ "<leader>x", group = "diagnostics/quickfix" },
{ "[", group = "prev" },
{ "]", group = "next" },
{ "g", group = "goto" },
{ "gs", group = "surround" },
{ "z", group = "fold" },
{
"<leader>b",
group = "buffer",
expand = function()
return require("which-key.extras").expand.buf()
end,
},
{
"<leader>w",
group = "windows",
proxy = "<c-w>",
expand = function()
return require("which-key.extras").expand.win()
end,
},
-- better descriptions
{ "gx", desc = "Open with system app" },
{ "gc", group = "comment", desc = "Toggle comment" },
},
},
},
keys = {
-- disable LazyVim's default <leader>? so the snacks keymaps picker owns it
{ "<leader>?", false },
{
"<c-w><space>",
function()
require("which-key").show({ keys = "<c-w>", loop = true })
end,
desc = "Window Hydra Mode (which-key)",
},
},
},
}