Thank you for taking the time to submit some code to gopher.nvim. It means a lot!
In this codebase for running tasks is used Taskfile. You can install it with:
go install github.com/go-task/task/v3/cmd/task@latest
Code is formatted by stylua and linted using selene. You can install these with:
sudo pacman -S selene stylua
# or whatever is your package manager
# or way of installing pkgs
For formatting use this following commands, or setup your editor to integrate with selene/stylua:
task format
task format:check # will check if your code formatted
task lint
Here we are using mini.doc for generating help files based on EmmyLua-like annotations in comments
You can generate docs with:
task docgen
We use Conventional Commits, please follow it.
For testing this plugins uses plenary.nvim. All tests live in /spec dir.
You can run tests with:
task test
# also there are some aliases for that
task tests
task spec