Skip to content

Instantly share code, notes, and snippets.

@buhrmi
Created November 7, 2011 10:51
  • Star 11 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save buhrmi/1344659 to your computer and use it in GitHub Desktop.
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
Copy link

A5308Y commented May 30, 2013

Thanks for including that gist!

@Kaligule
Copy link

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
Copy link

degzcs commented Mar 12, 2014

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

@Chekote
Copy link

Chekote 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
Copy link

nrser 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
Copy link

valscion 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
Copy link

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

@jonnypolite
Copy link

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

@knxroot
Copy link

knxroot 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