forked from jisaacks/GitGutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitGutter.sublime-settings
119 lines (102 loc) · 4.53 KB
/
GitGutter.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
// Enable/Disable GitGutter
// Set false to disable evaluation of changes and hide all gutter icons,
// status message and minimap marker.
"enable": true,
// Custom path to git binary when not in PATH. An empty string will search
// PATH for "git". The setting may be a direct string to a git binary, e.g.:
//
// "git_binary": "/usr/bin/git",
//
// Or it may be a dictionary keyed off what sublime.platform() returns,
// so it may be customized on a per-platform basis. e.g.:
//
// "git_binary": {
// "default": "",
// "windows": "C:/Program Files/Git/cmd/git.exe"
// },
"git_binary": "",
// The commit, branch, tag, or remote to compare against
// Can be set on a per-project basis by adding a project
// setting of "git_gutter_compare_against".
// This setting only changes the default (HEAD), but can
// still be overwritten temporarily using one of the commands
"compare_against": "HEAD",
// Live mode evaluates changes every time file is modified,
// Set false to disable evaluation after each input
"live_mode": true,
// Focus Change mode evaluates changes every time a view gets the focus
// Set false to disable evaluation when changing views
"focus_change_mode": true,
// (ST3, Build 3116+ only)
// Enable an hover popup, which shows an diff of the
// changed lines.
"enable_hover_diff_popup": true,
// (ST3 only) The default mode to open the diff popup. This will be
// used for the hover popup, the command palette entry,
// and the default keybinding.
// Possible modes are:
// "default": Show the previous git state in the popup
// "diff": Compare the git state to the working state and highlight
// the differences in the popup
"diff_popup_default_mode": "default",
// (ST3 only)
// Whether the the diff popup should use icons (true) or
// text (false) buttons
"diff_popup_use_icon_buttons": true,
// Delay update of gutter icons by the following amount (in milliseconds).
"debounce_delay": 1000,
// Determines whether GitGutter ignores whitespace in modified files.
// Set "none" to ensure whitespace is considered in the diff
// Set "eol" to only ignore whitespace at the end of lines
// Set "space" to ignore changes in ammount of white space
// Set "all" to ignore all white space
"ignore_whitespace": "none",
// Add a special marker on untracked files
"show_markers_on_untracked_file": true,
// Add --patience switch to git diff command. See
// http://bramcohen.livejournal.com/73318.html for
// an example of why you might need this.
"patience": true,
// Determines whether GitGutter shows status information in the status bar.
// Set false to disable status information.
// Set true to show information using the "status_bar_text" template.
"show_status_bar_text": true,
// STATUS BAR TEXT TEMPLATE
// The array is joined to a single string and passed to jinja2 template
// engine to render the status message text. The template can be modified using
// jinja2 supported syntax. GitGutter provides the following variables:
// {{repo}} -- repository name / folder name containing the .git directory
// {{branch}} -- checked out branch you are working on
// {{compare}} -- commit/branch/HEAD the file is compared to
// {{state}} -- One of committed/modified/ignored/untracked
// {{deleted}} -- number of deleted regions
// {{inserted}} -- number of inserted lines
// {{modified}} -- number of modified lines
"status_bar_text": [
"In {{repo}} on {{branch}}",
"{% if compare not in ('HEAD', branch) %}, Comparing against {{compare}}{% endif %}",
", File is {{state}}",
"{% if deleted != 0 %}, {{deleted}}-{% endif %}",
"{% if inserted != 0 %}, {{inserted}}+{% endif %}",
"{% if modified != 0 %}, {{modified}}≠{% endif %}"
],
// Show GitGutter information in the minimap
// =0: hide markers
// >0: width of markers
// -1: highlight full line
"show_in_minimap": 1,
// Determines whether the git_gutter_next_change and git_gutter_prev_change
// commands wrap around on reaching the beginning/ending of the file.
"next_prev_change_wrap": true,
// Do not set GitGutter icons in these regions
// Useful for making sure GitGutter does not override other
// regions, (e.g. Bookmarks, Linter/BracketHighlighter icons.)
"protected_regions": [
"sublimelinter-warning-gutter-marks",
"sublimelinter-error-gutter-marks",
"bookmarks"
],
// The gutter theme defines the icons to show for the different events.
"theme": "Default.gitgutter-theme"
}