A template to create Neovim plugins written in Lua
Clone/download it locally and change the references to my_plugin
, my_module
accordingly to your new plugin name.
You'll need to install Lua and LuaRocks to run the linter.
This uses busted, luassert (both through
plenary.nvim) and matcher_combinators to
define tests in spec/
directory. These dependencies are required only to run
tests, that´s why they are installed as git submodules.
To run them just execute
$ make test
If you have entr(1) installed you may use it to run all tests whenever a file is changed using:
$ make watch
An Action will run all the tests and the linter on every commit on the main branch and also on Pull Request. Tests will be run using stable and nightly versions of Neovim.