diff --git a/README.md b/README.md index 0b2c2da..7282d61 100644 --- a/README.md +++ b/README.md @@ -217,3 +217,14 @@ endfunction nnoremap cf :call RunZeekScript() ``` + +## Using `zeek-format` with [pre-commit](https://pre-commit.com/) + +Add this to your [`.pre-commit-config.yaml`](https://pre-commit.com/#adding-pre-commit-plugins-to-your-project): + +```yaml +- repo: https://github.com/pre-commit/mirrors-eslint + rev: '' # Use the SHA/tag you want to point at. + hooks: + - id: zeek-format +```