#!/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."