2026-08-08 14:26:59 +01:00
|
|
|
vim.pack.add({ 'https://github.com/folke/which-key.nvim' })
|
|
|
|
|
|
|
|
|
|
local wk = require('which-key')
|
|
|
|
|
|
|
|
|
|
wk.setup()
|
|
|
|
|
|
2026-08-08 17:27:37 +01:00
|
|
|
-- Names for the <leader> prefixes, so the popup groups them sensibly
|
2026-08-08 14:26:59 +01:00
|
|
|
wk.add({
|
2026-08-08 17:27:37 +01:00
|
|
|
{ '<leader>d', group = 'diagnostics' },
|
Add fzf-lua for project navigation
Wraps the fzf binary already installed via brew, alongside rg and fd,
so it needs no plugin dependencies - unlike telescope, which would
also pull in plenary. Picks up nvim-web-devicons for file icons, which
is the first thing actually using that plugin.
Maps live under <leader>f: files, live grep, buffers, grep the word
under the cursor, and help tags. The intent is to stop treating netrw
as the way into a project and switch to jumping by name, leaving
buffers open and bouncing between them, rather than quitting out of
nvim to change file.
Netrw is untouched and still on :Ex for browsing an unfamiliar tree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 18:39:48 +01:00
|
|
|
{ '<leader>f', group = 'find' },
|
2026-08-14 09:53:21 +01:00
|
|
|
{ '<leader>g', group = 'diff' },
|
2026-08-08 14:26:59 +01:00
|
|
|
{ '<leader>h', group = 'hunks' },
|
|
|
|
|
{ '<leader>t', group = 'toggles' },
|
|
|
|
|
})
|