Nvim plugin

From fredrikaverpil/dotfiles · View interactive version

Nvim plugin is an AI agent skill from the GitHub repository fredrikaverpil/dotfiles. Conventions and tooling for authoring a Neovim plugin in Lua. Use when creating, modifying, or reviewing a plugin — plugin structure, ftplugin, health checks, `setup()`, vimdoc, LuaCATS, lazy loading — or when working in a directory that looks like one (plugin/, lua/, ftplugin/).

How to use this skill

Skill file

Writing Neovim plugins

:h lua-plugin (https://neovim.io/doc/user/lua-plugin/) is the authority on

layout, setup() patterns, <Plug> mappings, guard variables, health checks

and deprecation. Read it rather than working from memory — it is opinionated

and it changes. This skill only records what it leaves out.

Style

Per .stylua.toml: 2-space indentation, double quotes, 120-char width,

requires sorted by stylua.

Tooling

doc/`.

lua-typecheck-action in CI, so luals catches breakage before users do.

Publish to luarocks when the plugin has Lua dependencies or is one itself.

Development loop

plugin/ costs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.