Skip to content

Commit 05f6019

Browse files
committed
fix: add experimental features flag to stylua pre-commit hook
1 parent 4ca0334 commit 05f6019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ repos:
6464
name: stylua
6565
description: Format Lua code with StyLua
6666
entry: bash
67-
args: [-c, 'if [ "$CI" = "true" ]; then echo "Skipping stylua in CI"; exit 0; elif command -v nix >/dev/null 2>&1; then nix shell nixpkgs#stylua -c stylua "$@"; else echo "Skipping stylua (Nix not available)"; fi', --]
67+
args: [-c, 'if [ "$CI" = "true" ]; then echo "Skipping stylua in CI"; exit 0; elif command -v nix >/dev/null 2>&1; then nix --extra-experimental-features "nix-command flakes" shell nixpkgs#stylua -c stylua "$@"; else echo "Skipping stylua (Nix not available)"; fi', --]
6868
language: system
6969
files: \.lua$

0 commit comments

Comments
 (0)