add git pre-commit hooks

This commit is contained in:
2025-07-02 04:14:53 -04:00
parent 585f04c745
commit 72a2e84fd4
2 changed files with 19 additions and 0 deletions

11
.githooks/pre-commit Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
echo "Running tests before commit..."
# Run your Neovim tests headlessly with Plenary
make test || {
echo "Tests failed. Commit aborted."
exit 1
}
echo "Tests passed. Proceeding with commit."