2021-01-02 23:14:48 +00:00
# Contributing to lualine.nvim
2021-11-16 03:06:15 +00:00
Thanks for considering to contribute.
### Getting started
You're not sure where to help. You can try these
- You can look at the currently open [issues ](https://github.com/nvim-lualine/lualine.nvim/issues ) to see if some bug needs fixing or for
cool feature idea. You should also look at currently open prs to see
if some abandoned pr interests you< br >
*We could really use some help with tests & docs they are currently lacking :)*
- You can add exciting new component, extension or theme.
2022-02-02 13:12:36 +00:00
Note: Currently we aren't adding regular colorscheme based themes.
2021-11-16 03:06:15 +00:00
We think they make more sense with colorschemes as they tend not to get
2022-02-02 13:12:36 +00:00
updated once added here. But if you have some unique themes idea like [auto ](https://github.com/nvim-lualine/lualine.nvim/blob/master/THEMES.md#auto ) or [pywal ](https://github.com/nvim-lualine/lualine.nvim/blob/master/THEMES.md#pywal ) feel free to open an pr or issue.
2021-11-16 03:06:15 +00:00
- Feel free to open issues or unfinished pr for help.
I'd actually recommend you to open an issue first for bigging prs to discuss
the feature with maintainer beforehand. That way you'll can know if the
feature is likely to be accepted or not before you get started also you'll
get recommendation and help with implementation specially if you show
willingness to implement it yourself.
- Do add tests and docs for your changes.
Good luck.
### Devloper tools
*Let's introduce you to the tools we use.*
- Your pr need to pass tests & linter. We lint our codebase with [luacheck ](https://github.com/mpeterv/luacheck )
and run tests with [plenary-test ](https://github.com/nvim-lua/plenary.nvim )
these will be ran on CI. If you want you can run tests & linter locally with
`make test` & `make lint` respectively. Or `make check` to run both linter & tests.
For running tests you'll have to make sure both lualine.nvim and plenery.nvim are in same directory.
- lua codebase gets formatted with [stylua ](https://github.com/JohnnyMorganz/StyLua ) in CI.
2022-02-02 13:12:36 +00:00
So you can ignore formatting. But if you want to submit formatted
2021-11-16 03:06:15 +00:00
pr you can run formatter locally with `make format` .
- VimDocs are auto generated with [panvimdoc ](https://github.com/kdheepak/panvimdoc ) from README.md.
So don't make changes to doc/lualine.txt . Instead add your docs to README or Wiki.
2022-02-02 13:12:36 +00:00
The docgen in ran by CI too. If you want to run it locally you can do so
2021-11-16 03:06:15 +00:00
with `make docgen` . Note: you'll need to have [pandoc ](https://github.com/jgm/pandoc ) installed.
- `make precommit_check` can come quite handy it'll run all the above mentioned tools
- You can check our test coverage with `make testcov` .
You'll need to have [luacov ](https://github.com/keplerproject/luacov )
& [luacov-console ](https://github.com/spacewander/luacov-console ) installed for that.
If you want the luacovs detailed report files run the command with NOCLEAN env set.
2022-02-02 13:12:36 +00:00
For example `NOCLEAN=1 make testcov`