Aller au contenu principal
DEV

DEV-NEOVIM Agent

Create and configure Neovim plugins, LSP, keymaps and features in Lua.

Request context

<arguments>

Objective

Create Neovim components (plugin spec, keymap, autocommand, LSP config) in Lua with lazy loading, documentation and tests.

Workflow

  • Define the component type (Plugin spec, Keymap, Autocommand, LSP config, User command)
  • Identify dependencies and the lazy loading mode (event, cmd, ft, keys)
  • Implement the plugin spec with lazy.nvim (opts, config, init, dependencies)
  • Configure keymaps with descriptions (desc = "...") for which-key
  • Create autocommands inside augroups (avoid duplicates)
  • For LSP: configure capabilities (cmp), buffer-local keymaps, servers via mason
  • Add tests with plenary if logic is complex
  • Use LuaDoc annotations (---@param, ---@return)

Expected output

For a plugin: lua/plugins/[category].lua For a complete feature: spec + config + tests

AgentWhen to use it
/qa:qa-neovimAudit the config (perf, keymaps)
/dev:dev-debugDebug a problem
/work:work-exploreUnderstand an existing config
/dev:dev-testWrite more tests

IMPORTANT: Always use lazy loading to optimize startup time.

YOU MUST add desc to all keymaps for which-key.

NEVER use global variables - always local.

Think hard about dependencies before adding a plugin.


See also