Files
nvim/lua/plugins/which-key.lua
zias c0d2326e34 feat: add ThePrimeagen/99 AI agent plugin
- Configured with OpenCodeProvider (default, matches opencode environment)
- blink.cmp as completion source for # rules and @ file references
- tmp_dir = ./tmp (per-project, keeps opencode permission happy)
- Auto-injects AGENT.md files from file location up to project root
- Keymaps under <leader>9 group:
    9v (visual) replace selection with AI result
    9s search project → quickfix list
    9x stop all in-flight requests
    9c clear previous results
    9l view debug logs
    9m telescope model picker
    9p telescope provider picker
- Added AI [9]9 group to which-key
2026-02-26 11:55:48 +01:00

31 lines
1.0 KiB
Lua

-- lua/plugins/which-key.lua
-- Shows pending keybind completions as you type
return {
'folke/which-key.nvim',
event = 'VimEnter',
opts = {
delay = 0,
icons = {
mappings = vim.g.have_nerd_font,
keys = vim.g.have_nerd_font and {} or {
Up = '<Up> ', Down = '<Down> ', Left = '<Left> ', Right = '<Right> ',
C = '<C-…> ', M = '<M-…> ', D = '<D-…> ', S = '<S-…> ',
CR = '<CR> ', Esc = '<Esc> ',
ScrollWheelDown = '<ScrollWheelDown> ', ScrollWheelUp = '<ScrollWheelUp> ',
NL = '<NL> ', BS = '<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>',
},
},
spec = {
{ '<leader>s', group = '[S]earch' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
{ '<leader>d', group = '[D]ebug' },
{ '<leader>9', group = 'AI [9]9' },
},
},
}