diff --git a/.editorconfig b/.editorconfig index ff85cf654a17..8b76069e8ad9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -35,8 +35,12 @@ indent_size = 1 [*.{json,lock,md,nix,rb}] indent_size = 2 -# Match perl/python/shell scripts, set indent width of four -[*.{bash,pl,pm,py,sh}] +# Match all the Bash code in Nix files, set indent width of two +[*.{bash,sh}] +indent_size = 2 + +# Match Perl and Python scripts, set indent width of four +[*.{pl,pm,py}] indent_size = 4 # Match gemfiles, set indent to spaces with width of two