Clone this repo into ~/.config/nvim.
nvim --headless -c "PlenaryBustedDirectory lua/tests {minimal_init = './lua/tests/init.lua'}"Use pre-commit. Follow the official Quick start.
pre-commit install -t pre-commit -t commit-msgUse Conventional Commits.
Warning
Permission error may occur to access .npm directory when you first commit after installing pre-commit.
To solve, please set the permission owner to the current user.
sudo chown -R $(whoami) ~/.npm