Переглянути джерело

poweline_gitstatus added

master
Dirk Alders 1 рік тому
джерело
коміт
15072e4a15

+ 5
- 1
README.md Переглянути файл

@@ -1,3 +1,7 @@
1 1
 # config_files
2 2
 
3
-Config File Collection
3
+Config File Collection
4
+
5
+* Create a softlink in your $HOME directory to .vimrc to get this vim configuration
6
+* Create a softlink in your $HOME directory to .tmux.conf to get this vim configuration
7
+* Create a softlink named powerline in your $HOME/.config directory to powerline_gitstatus to get this powerline configuration

+ 18
- 0
powerline_gitstatus/colorschemes/default.json Переглянути файл

@@ -0,0 +1,18 @@
1
+{
2
+  "groups": {
3
+    "gitstatus":                 { "fg": "gray8",           "bg": "gray2", "attrs": [] },
4
+    "gitstatus_branch":          { "fg": "gray8",           "bg": "gray2", "attrs": [] },
5
+    "gitstatus_branch_clean":    { "fg": "green",           "bg": "gray2", "attrs": [] },
6
+    "gitstatus_branch_dirty":    { "fg": "gray8",           "bg": "gray2", "attrs": [] },
7
+    "gitstatus_branch_detached": { "fg": "mediumpurple",    "bg": "gray2", "attrs": [] },
8
+    "gitstatus_tag":             { "fg": "darkcyan",        "bg": "gray2", "attrs": [] },
9
+    "gitstatus_behind":          { "fg": "gray10",          "bg": "gray2", "attrs": [] },
10
+    "gitstatus_ahead":           { "fg": "gray10",          "bg": "gray2", "attrs": [] },
11
+    "gitstatus_staged":          { "fg": "green",           "bg": "gray2", "attrs": [] },
12
+    "gitstatus_unmerged":        { "fg": "brightred",       "bg": "gray2", "attrs": [] },
13
+    "gitstatus_changed":         { "fg": "mediumorange",    "bg": "gray2", "attrs": [] },
14
+    "gitstatus_untracked":       { "fg": "brightestorange", "bg": "gray2", "attrs": [] },
15
+    "gitstatus_stashed":         { "fg": "darkblue",        "bg": "gray2", "attrs": [] },
16
+    "gitstatus:divider":         { "fg": "gray8",           "bg": "gray2", "attrs": [] }
17
+  }
18
+}

+ 7
- 0
powerline_gitstatus/config.json Переглянути файл

@@ -0,0 +1,7 @@
1
+{
2
+    "ext": {
3
+        "shell": {
4
+            "theme": "default"
5
+        }
6
+    }
7
+}

+ 47
- 0
powerline_gitstatus/themes/shell/default.json Переглянути файл

@@ -0,0 +1,47 @@
1
+{
2
+	"segments": {
3
+		"left": [
4
+			{
5
+				"function": "powerline.segments.shell.mode"
6
+			},
7
+			{
8
+				"function": "powerline.segments.common.net.hostname",
9
+				"args": {
10
+					"only_if_ssh": false,
11
+					"exclude_domain": true
12
+				},
13
+				"priority": 10
14
+			},
15
+			{
16
+				"function": "powerline.segments.common.env.user",
17
+				"priority": 30
18
+			},
19
+			{
20
+				"function": "powerline.segments.common.env.virtualenv",
21
+				"priority": 50
22
+			},
23
+			{
24
+				"function": "powerline.segments.shell.cwd",
25
+				"priority": 10
26
+			},
27
+			{
28
+				"function": "powerline.segments.shell.jobnum",
29
+				"priority": 20
30
+			},
31
+			{
32
+				"function": "powerline.segments.shell.last_status",
33
+				"priority": 10
34
+			}
35
+		],
36
+		"right": [
37
+			{
38
+				"function": "powerline.segments.shell.last_pipe_status",
39
+				"priority": 10
40
+			},
41
+			{
42
+				"function": "powerline_gitstatus.gitstatus",
43
+				"priority": 40
44
+			}
45
+		]
46
+	}
47
+}

+ 128
- 0
powerline_gitstatus/themes/vim/default.json Переглянути файл

@@ -0,0 +1,128 @@
1
+{
2
+	"segments": {
3
+		"left": [
4
+			{
5
+				"function": "mode",
6
+				"exclude_modes": ["nc"]
7
+			},
8
+			{
9
+				"function": "visual_range",
10
+				"include_modes": ["v", "V", "^V", "s", "S", "^S"],
11
+				"priority": 10
12
+			},
13
+			{
14
+				"function": "paste_indicator",
15
+				"exclude_modes": ["nc"],
16
+				"priority": 10
17
+			},
18
+			{
19
+				"function": "powerline.segments.vim.plugin.capslock.capslock_indicator",
20
+				"include_modes": ["i", "R", "Rv"],
21
+				"priority": 10
22
+			},
23
+			{
24
+				"function": "powerline_gitstatus.gitstatus",
25
+				"exclude_modes": ["nc"],
26
+				"priority": 30
27
+			},
28
+			{
29
+				"function": "readonly_indicator",
30
+				"draw_soft_divider": false,
31
+				"after": " "
32
+			},
33
+			{
34
+				"function": "file_scheme",
35
+				"priority": 20
36
+			},
37
+			{
38
+				"function": "file_directory",
39
+				"priority": 40,
40
+				"draw_soft_divider": false
41
+			},
42
+			{
43
+				"function": "file_name",
44
+				"draw_soft_divider": false
45
+			},
46
+			{
47
+				"function": "file_vcs_status",
48
+				"before": " ",
49
+				"draw_soft_divider": false
50
+			},
51
+			{
52
+				"function": "modified_indicator",
53
+				"before": " "
54
+			},
55
+			{
56
+				"exclude_modes": ["i", "R", "Rv"],
57
+				"function": "trailing_whitespace",
58
+				"display": false,
59
+				"priority": 60
60
+			},
61
+			{
62
+				"exclude_modes": ["nc"],
63
+				"function": "powerline.segments.vim.plugin.syntastic.syntastic",
64
+				"priority": 50
65
+			},
66
+			{
67
+				"exclude_modes": ["nc"],
68
+				"function": "powerline.segments.vim.plugin.tagbar.current_tag",
69
+				"draw_soft_divider": false,
70
+				"priority": 50
71
+			},
72
+			{
73
+				"type": "string",
74
+				"highlight_groups": ["background"],
75
+				"draw_soft_divider": false,
76
+				"draw_hard_divider": false,
77
+				"width": "auto"
78
+			}
79
+		],
80
+		"right": [
81
+			{
82
+				"function": "file_format",
83
+				"draw_soft_divider": false,
84
+				"exclude_modes": ["nc"],
85
+				"priority": 60
86
+			},
87
+			{
88
+				"function": "file_encoding",
89
+				"exclude_modes": ["nc"],
90
+				"priority": 60
91
+			},
92
+			{
93
+				"function": "file_type",
94
+				"exclude_modes": ["nc"],
95
+				"priority": 60
96
+			},
97
+			{
98
+				"function": "line_percent",
99
+				"priority": 50,
100
+				"width": 4,
101
+				"align": "r"
102
+			},
103
+			{
104
+				"function": "csv_col_current",
105
+				"priority": 30
106
+			},
107
+			{
108
+				"type": "string",
109
+				"name": "line_current_symbol",
110
+				"highlight_groups": ["line_current_symbol", "line_current"]
111
+			},
112
+			{
113
+				"function": "line_current",
114
+				"draw_soft_divider": false,
115
+				"width": 3,
116
+				"align": "r"
117
+			},
118
+			{
119
+				"function": "virtcol_current",
120
+				"draw_soft_divider": false,
121
+				"priority": 20,
122
+				"before": ":",
123
+				"width": 3,
124
+				"align": "l"
125
+			}
126
+		]
127
+	}
128
+}

Завантаження…
Відмінити
Зберегти