gopher.nvim/CONTRIBUTING.md
Smirnov Oleksandr 9aa0038125
refactor: minimize amount of vimscript (#96)
* refactor: remove autoload

* since nvim 0.9 health.lua files are threaded as checkhealth provider

*  prof of concept 

* fix(runner.gocmd)!: i forgot to update it when i was working on #85

* fix(plugin): now commands register properly

* fix(plugin): fix command name for :GoIfErr

* fix(plugin): respect `setup_commands` option

* docs: update

* refactor(plugin): use vim.schedule

* docs: update CONTRIBUTING
2025-03-21 21:44:42 +02:00

1.3 KiB

Contributing to gopher.nvim

Thank you for taking the time to submit some code to gopher.nvim. It means a lot!

Task running

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

Styling and formatting

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

For formatting use this following commands, or setup your editor to integrate with selene/stylua:

task stylua
task lint # lintering and format chewing

Documentation

Here we are using mini.doc for generating help files based on EmmyLua-like annotations in comments

You can generate docs with:

task docgen

Commit messages

We use Conventional Commits, please follow it.

Testing

For testing this plugins uses mini.test. All tests live in /spec dir.

You can run tests with:

task tests