chore: remove ecolog, i don't use it

This commit is contained in:
Mariano Z. 2025-03-24 13:07:00 -03:00
parent c48f8a2b92
commit 1020911f18
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
7 changed files with 164 additions and 105 deletions

14
.githooks/pre-commit Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
STYLUA_PATH="$HOME/.local/share/nvim/mason/bin/stylua"
if [[ -x "$STYLUA_PATH" ]]; then
LUA_FILES=$(git diff --cached --name-only --diff-filter=AM | grep '\.lua$')
if [ -n "$LUA_FILES" ]; then
echo "$LUA_FILES" | xargs "$STYLUA_PATH"
echo "$LUA_FILES" | xargs git add
fi
else
echo "Error: stylua not found. Please install it via Mason."
exit 1
fi