Skip to content

Commit

Permalink
[Git Files] Config: Add indention rules
Browse files Browse the repository at this point in the history
All .gitconfig files use indented key-value pairs. This commit adds indention rules to automatically adapt to this behavior.
  • Loading branch information
deathaxe committed Feb 8, 2018
1 parent 00e10a8 commit bcd2798
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Config/Indentation Rules.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>name</key>
<string>Indentation Rules</string>
<key>scope</key>
<string>text.git.config</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string><![CDATA[^\s*\[.*$]]></string>
<key>increaseIndentPattern</key>
<string><![CDATA[^\s*\[.*$]]></string>
</dict>
</dict>
</plist>

0 comments on commit bcd2798

Please sign in to comment.