template.nvim/Justfile

15 lines
313 B
Makefile
Raw Normal View History

2024-07-02 23:10:09 +00:00
_default:
just --choose
# Lint All Files
lint:
@stylua lua/
# Static code Analysis
stan:
#!/bin/sh
status=$(lua-language-server --logpath="./log" --chechklevel=Error --check lua/)
if ! echo "$status" | grep -qF "Diagnosis completed, no problems found"; then
cat ./log/check.json | jq && exit 1
fi