Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 689 Bytes

CONTRIBUTING.md

File metadata and controls

39 lines (28 loc) · 689 Bytes

Contributing

Running tests

Tests use plenary.nvim. The bootstrap script clones it automatically if not present.

nvim --headless \
  -u tests/minimal_init.lua \
  -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal_init.lua'}" \
  -c "qa"

Run a single file:

nvim --headless \
  -u tests/minimal_init.lua \
  -c "PlenaryBustedFile tests/diff_spec.lua" \
  -c "qa"

Linting

luacheck lua/

Formatting

stylua lua/

Pull requests

  • All tests must pass
  • Code must be formatted with stylua (configuration in .stylua.toml)
  • Keep changes focused; one concern per PR