kakoune: add pint as formatter

This commit is contained in:
Leonardo Eugênio 2024-10-23 12:35:07 -03:00
parent 5da937fb46
commit cc0ddda78a
4 changed files with 13 additions and 0 deletions

7
scripts/pint-fmt Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
file="$(mktemp --tmpdir=/dev/shm).php"
cat - >"$file"
./vendor/bin/pint --quiet "$file"
cat "$file"
rm "$file"