summary refs log tree commit diff
path: root/.editorconfig
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-05-16 12:23:00 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-05-18 22:36:28 +1000
commit1f689421e7815f5c9e5c1046ae68d97e20612c76 (patch)
treea6078b4a592beff38e71c0736d2f2166d1fdadac /.editorconfig
parent82263944a73ed7526e623bac9be69a811e335c86 (diff)
downloadnixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar.gz
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar.bz2
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar.lz
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar.xz
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.tar.zst
nixpkgs-1f689421e7815f5c9e5c1046ae68d97e20612c76.zip
.editorconfig: set docbook indent size
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig16
1 files changed, 11 insertions, 5 deletions
diff --git a/.editorconfig b/.editorconfig
index f272739f240..717a4d903bb 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -13,14 +13,20 @@ charset = utf-8
 
 # see https://nixos.org/nixpkgs/manual/#chap-conventions
 
-# Match nix/ruby/docbook files, set indent to spaces with width of two
-[*.{nix,rb,xml}]
+# Match nix/perl/python/ruby/shell/docbook files, set indent to spaces
+[*.{nix,pl,py,rb,sh,xml}]
 indent_style = space
+
+# Match docbook files, set indent width of one
+[*.xml]
+indent_size = 1
+
+# Match nix/ruby files, set indent width of two
+[*.{nix,rb}]
 indent_size = 2
 
-# Match shell/python/perl scripts, set indent to spaces with width of four
-[*.{sh,py,pl}]
-indent_style = space
+# Match perl/python/shell scripts, set indent width of four
+[*.{pl,py,sh}]
 indent_size = 4
 
 # Match diffs, avoid to trim trailing whitespace