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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
" Name: hashpunk
" Author: abnt713
" Maintainer: abnt713
" License: MIT
highlight clear
if exists('syntax_on')
syntax reset
endif
let g:colors_name = 'hashpunk-lapis'
set background=dark
" Dark Meadow Legacy
let s:clear = ['NONE', 'NONE' ]
let s:DarkMagenta = ['90' , '#870087']
let s:Purple4 = ['55' , '#5f00af']
let s:SkyBlue1 = ['117' , '#87afff']
let s:Magenta2 = ['165' , '#d700ff']
let s:MediumOrchid1 = ['207' , '#ff5faf']
" Hashpunk
let s:MainColor = ['110', '#875fff']
let s:ComplementaryColor = ['111', '#8787ff']
let s:Grey0 = ['16', '#000000']
let s:Grey7 = ['233', '#121212']
let s:Grey15 = ['235', '#262626']
let s:Grey19 = ['236', '#303030']
let s:Grey42 = ['242', '#6c6c6c']
let s:Grey54 = ['245', '#505050']
let s:Grey66 = ['248', '#a8a8a8']
let s:Grey74 = ['250', '#bcbcbc']
let s:Grey93 = ['255', '#eeeeee']
" Text style
let s:italic = 'italic'
let s:bold = 'bold'
let s:underline = 'underline'
let s:none = 'NONE'
" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
exec "highlight " . a:group
\ . " ctermfg=" . a:fg[0]
\ . " ctermbg=" . a:bg[0]
\ . " cterm=" . a:style
\ . " guifg=" . a:fg[1]
\ . " guibg=" . a:bg[1]
\ . " gui=" . a:style
endfunction
" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment', s:Grey42, s:clear, s:italic)
call s:highlight('Constant', s:MainColor, s:clear, s:none)
call s:highlight('String', s:Grey93, s:clear, s:none)
call s:highlight('Character', s:Grey93, s:clear, s:none)
call s:highlight('Number', s:Grey93, s:clear, s:none)
call s:highlight('Boolean', s:ComplementaryColor, s:clear, s:none)
call s:highlight('Float', s:MainColor, s:clear, s:none)
call s:highlight('Identifier', s:MainColor, s:clear, s:none)
call s:highlight('Function', s:MainColor, s:clear, s:none)
call s:highlight('Statement', s:MainColor, s:clear, s:bold)
call s:highlight('Conditional', s:MainColor, s:clear, s:bold)
call s:highlight('Repeat', s:MainColor, s:clear, s:bold)
call s:highlight('Label', s:MainColor, s:clear, s:bold)
call s:highlight('Operator', s:MainColor, s:clear, s:none)
call s:highlight('Keyword', s:MainColor, s:clear, s:none)
call s:highlight('Exception', s:MainColor, s:clear, s:italic)
call s:highlight('PreProc', s:Grey54, s:clear, s:italic)
call s:highlight('Include', s:Grey74, s:clear, s:italic)
call s:highlight('Define', s:Grey66, s:clear, s:italic)
call s:highlight('Macro', s:Grey66, s:clear, s:italic)
call s:highlight('PreCondit', s:MainColor, s:clear, s:italic)
call s:highlight('Type', s:MainColor, s:clear, s:bold)
call s:highlight('StorageClass', s:MainColor, s:clear, s:bold)
call s:highlight('Structure', s:MainColor, s:clear, s:bold)
call s:highlight('Typedef', s:MainColor, s:clear, s:bold)
call s:highlight('Special', s:Grey66, s:clear, s:none)
call s:highlight('SpecialChar', s:MainColor, s:clear, s:none)
call s:highlight('Delimiter', s:MainColor, s:clear, s:none)
call s:highlight('SpecialComment', s:Grey54, s:clear, s:none)
call s:highlight('Debug', s:MainColor, s:clear, s:none)
call s:highlight('Underlined', s:Grey54, s:clear, s:underline)
call s:highlight('Error', s:MainColor, s:clear, s:underline)
call s:highlight('Todo', s:MainColor, s:clear, s:none)
call s:highlight('Directory', s:Grey93, s:clear, s:bold)
call s:highlight('CursorLine', s:MainColor, s:clear, s:bold)
call s:highlight('MatchParen', s:MainColor, s:Grey93, s:none)
call s:highlight('ColorColumn', s:MainColor, s:Grey15, s:none)
" Interface highlighting
call s:highlight('Normal', s:Grey93, s:Grey7, s:none)
call s:highlight('Visual', s:clear, s:Grey0, s:none)
call s:highlight('Cursor', s:clear, s:Grey0, s:none)
call s:highlight('iCursor', s:clear, s:Grey0, s:none)
call s:highlight('LineNr', s:Grey66, s:clear, s:none)
call s:highlight('NonText', s:Grey66, s:clear, s:none)
call s:highlight('CursorLineNr', s:Grey0, s:Grey7, s:none)
call s:highlight('VertSplit', s:Grey15, s:clear, s:none)
" Pmenu
call s:highlight('Pmenu', s:Grey93, s:Grey19, s:none)
call s:highlight('PmenuSel', s:MainColor, s:Grey15, s:none)
" Search
call s:highlight('Search', s:Grey93, s:MainColor, s:none)
" GitDiff
call s:highlight('DiffAdd', s:MainColor, s:Grey93, s:none)
call s:highlight('DiffChange', s:Grey7, s:Grey93, s:none)
call s:highlight('DiffText', s:MainColor, s:Grey74, s:none)
call s:highlight('DiffDelete', s:Grey0, s:MainColor, s:none)
" Git Gutter
call s:highlight('GitGutterAdd', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChange', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterDelete', s:Grey93, s:clear, s:none)
call s:highlight('GitGutterChangeDelete', s:Grey93, s:clear, s:none)
call s:highlight('SignColumn', s:Grey93, s:clear, s:none)
" Java syntax highlighting
call s:highlight('javaParen', s:MainColor, s:clear, s:none)
call s:highlight('javaCommentTitle', s:Grey42, s:clear, s:none)
call s:highlight('javaDocParam', s:MainColor, s:clear, s:none)
call s:highlight('javaDocTags', s:Grey54, s:clear, s:none)
call s:highlight('javaScopeDecl', s:Grey54, s:clear, s:none)
call s:highlight('javaStorageClass', s:MainColor, s:clear, s:none)
" Python syntax highlighting
call s:highlight('pythonFunction', s:Grey93, s:clear, s:none)
call s:highlight('pythonBuiltin', s:Grey54, s:clear, s:italic)
" Vimscript syntax highlighting
call s:highlight('vimOption', s:Grey93, s:clear, s:none)
" NERDTree
call s:highlight('NERDTreeClosable', s:MainColor, s:clear, s:none)
call s:highlight('NERDTreeOpenable', s:MainColor, s:clear, s:none)
" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"
" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('Magenta2TypeDef', s:MediumOrchid1, s:clear, s:bold)
call s:highlight('Magenta2Alias', s:Grey66, s:clear, s:none)
call s:highlight('Magenta2TopLevelDecl', s:SkyBlue1, s:clear, s:bold)
call s:highlight('Magenta2Braces', s:DarkMagenta, s:clear, s:none)
" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias', s:Magenta2, s:clear, s:italic)
call s:highlight('elixirDefine', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirBlockDefinition', s:MediumOrchid1, s:clear, s:none)
call s:highlight('elixirFunctionDeclaration', s:Grey66, s:clear, s:none)
" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage', s:Magenta2, s:clear, s:italic)
call s:highlight('goImport', s:Purple4, s:clear, s:italic)
" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro', s:MediumOrchid1, s:clear, s:none)
|