dotfiles/neovim/config/plugins/which-key.lua
Jonny Barnes 37253c8a7b
Add diffview.nvim for reviewing diffs and file history
Installed via vim.pack, matching how the other plugins here are
managed. Adds a new <leader>g "diff" group: gd opens a Diffview
against the index, gc closes it, gh shows history for the current
file, gH for the branch.

Verified headlessly: config/plugins loads clean, :DiffviewOpen is
registered, and opening/closing a Diffview against this repo works
with no errors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013t7aQbc4EyYtab1crvSFTd
2026-08-14 09:53:21 +01:00

14 lines
374 B
Lua

vim.pack.add({ 'https://github.com/folke/which-key.nvim' })
local wk = require('which-key')
wk.setup()
-- Names for the <leader> prefixes, so the popup groups them sensibly
wk.add({
{ '<leader>d', group = 'diagnostics' },
{ '<leader>f', group = 'find' },
{ '<leader>g', group = 'diff' },
{ '<leader>h', group = 'hunks' },
{ '<leader>t', group = 'toggles' },
})