neovim-plugin-development
Installation
SKILL.md
Neovim Plugin Development
Resolve the minimum Neovim version, runtimepath layout, public Lua modules, and commands. Use supported host APIs and Lua syntax.
- Read runtime and ownership for loading, positions, undo, callbacks, and resource lifecycle.
- Read integration and validation for LSP, diagnostics, health, real-host tests, help, and distribution.
Keep plugin/ startup lightweight and load lua/ implementation on demand. Add
setup only when needed, and make repeated calls idempotent. Own any augroups and
namespaces you create; clear only owned resources. Scope filetype settings and
mappings to their intended buffers.
Schedule editor mutation from restricted callbacks. Re-check buffer validity, loaded state, changedtick, and request generation before applying results. Stop jobs and close owned timers, pipes, and watchers at teardown.