Contributing to gitlinker.nvim
June 28, 2021 ยท View on GitHub
Requirements
Lint
Pull requests have a CI check for linting issues. To run the linter locally:
make lint
Formatting
Lua formatting rules are specified in the stylua.toml file at the root of the
repository.
To auto-format all files:
make format
Support a new host
- Check how the url permalinks for that host are constructed.
- Create a new host callback in
lua/gitlinker/hosts.lua and add it to the
M.callbackstable in that file.
Add a new action callback
Create a new callback in lua/gitlinker/actions.lua
TODO
- Autogenerate docs
- Tests