A template repository for neovim plugins. Includes automatic doc generation based on your project's README, integration tests with Busted, and linting via Stylua.
- Click
use this templatebutton generate a repo under your github account. - Clone the newly-created repository, open a terminal, and cd to the plugin directory.
- Run
python3 rename.py your-plugin-name. This will:- Replace all occurrences of
nvim-plugin-templatewithyour-plugin-name. - Promt you for
yornto remove example code ininit.luaandtest/plugin_spec.lua.- If you are familiar with this repo, just select
y. - Otherwise, I suggest you inspect the contents of thses files first.
- If you are familiar with this repo, just select
- Lastly,
rename.pywill auto-remove itself.
- Replace all occurrences of
Now you have a clean plugin development environment. Enjoy!
The CI uses stylua to format the code. Customize the formatting by editing .stylua.toml.
- Auto-generates doc from README.
- Runs the nvim-busted-action for tests.
- Lints with
stylua.
To see this template in action, take a look at my other plugins.