Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text 2 Git Annotation Colors
<dict>
<key>name</key>
<string>Git Modified Line</string>
<key>scope</key>
<string>git.changes.x</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#272852</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Git Added Line</string>
<key>scope</key>
<string>git.changes.+</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#275822</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Git Remove Line</string>
<key>scope</key>
<string>git.changes.-</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#A72822</string>
</dict>
</dict>
@A5308Y

This comment has been minimized.

Copy link

commented May 30, 2013

Thanks for including that gist!

@Kaligule

This comment has been minimized.

Copy link

commented Feb 21, 2014

Where am I supposed to paste that? I tried to append it to my current theme file, but nothing happend. Could you explain me where to put it?

@degzcs

This comment has been minimized.

Copy link

commented Mar 12, 2014

I have the same problem.... so Where am I supposed to paste that?

@Chekote

This comment has been minimized.

Copy link

commented Mar 20, 2014

You need to paste this into the tmTheme file for whatever theme you are using. On Mac, the theme files are located in ~/Library/Sublime Text 2/Packages/Color Scheme - Default/

@nrser

This comment has been minimized.

Copy link

commented Jun 2, 2014

could you be a little more clear? or provide a full Monokai.tmTheme file as an example? i pasted the above into

~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default/Monokai.tmTheme

in the settings array like so:

and am still only seeing little white dots next to lines, no nice colors :/

@valscion

This comment has been minimized.

Copy link

commented Jun 2, 2014

@nrser, try this: https://sublime.wbond.net/packages/PackageResourceViewer It seems promising. I managed to change the removed line mark colour with it on Sublime Text 3.

@jonnypolite

This comment has been minimized.

Copy link

commented Nov 6, 2014

Yeah I can't get this to work. Did anyone on this thread figure it out?

@jonnypolite

This comment has been minimized.

Copy link

commented Nov 6, 2014

Nevermind, for anyone else experiencing this issue I recommend installing the GitGutter sublime package. Takes care of the annotation stuff without any fuss.

@knxroot

This comment has been minimized.

Copy link

commented Jul 28, 2016

Try using my fork https://gist.github.com/knxroot/faa0e3b2d763feee1348af45ab2473ad add before < / array> in your .tmTheme file. This work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.