gruvbox.vim 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248
  1. " -----------------------------------------------------------------------------
  2. " File: gruvbox.vim
  3. " Description: Retro groove color scheme for Vim
  4. " Author: morhetz <morhetz@gmail.com>
  5. " Source: https://github.com/morhetz/gruvbox
  6. " Last Modified: 04 Sep 2015
  7. " -----------------------------------------------------------------------------
  8. " Supporting code -------------------------------------------------------------
  9. " Initialisation: {{{
  10. if version > 580
  11. hi clear
  12. if exists("syntax_on")
  13. syntax reset
  14. endif
  15. endif
  16. let g:colors_name='gruvbox'
  17. if !has('gui_running') && &t_Co != 256
  18. finish
  19. endif
  20. " }}}
  21. " Global Settings: {{{
  22. if !exists('g:gruvbox_bold')
  23. let g:gruvbox_bold=1
  24. endif
  25. if !exists('g:gruvbox_italic')
  26. if has('gui_running') || $TERM_ITALICS == 'true'
  27. let g:gruvbox_italic=1
  28. else
  29. let g:gruvbox_italic=0
  30. endif
  31. endif
  32. if !exists('g:gruvbox_undercurl')
  33. let g:gruvbox_undercurl=1
  34. endif
  35. if !exists('g:gruvbox_underline')
  36. let g:gruvbox_underline=1
  37. endif
  38. if !exists('g:gruvbox_inverse')
  39. let g:gruvbox_inverse=1
  40. endif
  41. if !exists('g:gruvbox_guisp_fallback') || index(['fg', 'bg'], g:gruvbox_guisp_fallback) == -1
  42. let g:gruvbox_guisp_fallback='NONE'
  43. endif
  44. if !exists('g:gruvbox_improved_strings')
  45. let g:gruvbox_improved_strings=0
  46. endif
  47. if !exists('g:gruvbox_improved_warnings')
  48. let g:gruvbox_improved_warnings=0
  49. endif
  50. if !exists('g:gruvbox_termcolors')
  51. let g:gruvbox_termcolors=256
  52. endif
  53. if !exists('g:gruvbox_invert_indent_guides')
  54. let g:gruvbox_invert_indent_guides=0
  55. endif
  56. if exists('g:gruvbox_contrast')
  57. echo 'g:gruvbox_contrast is deprecated; use g:gruvbox_contrast_light and g:gruvbox_contrast_dark instead'
  58. endif
  59. if !exists('g:gruvbox_contrast_dark')
  60. let g:gruvbox_contrast_dark='medium'
  61. endif
  62. if !exists('g:gruvbox_contrast_light')
  63. let g:gruvbox_contrast_light='medium'
  64. endif
  65. let s:is_dark=(&background == 'dark')
  66. " }}}
  67. " Palette: {{{
  68. " setup palette dictionary
  69. let s:gb = {}
  70. " fill it with absolute colors
  71. let s:gb.dark0_hard = ['#1d2021', 234] " 29-32-33
  72. let s:gb.dark0 = ['#282828', 235] " 40-40-40
  73. let s:gb.dark0_soft = ['#32302f', 236] " 50-48-47
  74. let s:gb.dark1 = ['#3c3836', 237] " 60-56-54
  75. let s:gb.dark2 = ['#504945', 239] " 80-73-69
  76. let s:gb.dark3 = ['#665c54', 241] " 102-92-84
  77. let s:gb.dark4 = ['#7c6f64', 243] " 124-111-100
  78. let s:gb.dark4_256 = ['#7c6f64', 243] " 124-111-100
  79. let s:gb.gray_245 = ['#928374', 245] " 146-131-116
  80. let s:gb.gray_244 = ['#928374', 244] " 146-131-116
  81. let s:gb.light0_hard = ['#f9f5d7', 230] " 249-245-215
  82. let s:gb.light0 = ['#fbf1c7', 229] " 253-244-193
  83. let s:gb.light0_soft = ['#f2e5bc', 228] " 242-229-188
  84. let s:gb.light1 = ['#ebdbb2', 223] " 235-219-178
  85. let s:gb.light2 = ['#d5c4a1', 250] " 213-196-161
  86. let s:gb.light3 = ['#bdae93', 248] " 189-174-147
  87. let s:gb.light4 = ['#a89984', 246] " 168-153-132
  88. let s:gb.light4_256 = ['#a89984', 246] " 168-153-132
  89. let s:gb.bright_red = ['#fb4934', 167] " 251-73-52
  90. let s:gb.bright_green = ['#b8bb26', 142] " 184-187-38
  91. let s:gb.bright_yellow = ['#fabd2f', 214] " 250-189-47
  92. let s:gb.bright_blue = ['#83a598', 109] " 131-165-152
  93. let s:gb.bright_purple = ['#d3869b', 175] " 211-134-155
  94. let s:gb.bright_aqua = ['#8ec07c', 108] " 142-192-124
  95. let s:gb.bright_orange = ['#fe8019', 208] " 254-128-25
  96. let s:gb.neutral_red = ['#cc241d', 124] " 204-36-29
  97. let s:gb.neutral_green = ['#98971a', 106] " 152-151-26
  98. let s:gb.neutral_yellow = ['#d79921', 172] " 215-153-33
  99. let s:gb.neutral_blue = ['#458588', 66] " 69-133-136
  100. let s:gb.neutral_purple = ['#b16286', 132] " 177-98-134
  101. let s:gb.neutral_aqua = ['#689d6a', 72] " 104-157-106
  102. let s:gb.neutral_orange = ['#d65d0e', 166] " 214-93-14
  103. let s:gb.faded_red = ['#9d0006', 88] " 157-0-6
  104. let s:gb.faded_green = ['#79740e', 100] " 121-116-14
  105. let s:gb.faded_yellow = ['#b57614', 136] " 181-118-20
  106. let s:gb.faded_blue = ['#076678', 24] " 7-102-120
  107. let s:gb.faded_purple = ['#8f3f71', 96] " 143-63-113
  108. let s:gb.faded_aqua = ['#427b58', 66] " 66-123-88
  109. let s:gb.faded_orange = ['#af3a03', 130] " 175-58-3
  110. " }}}
  111. " Setup Emphasis: {{{
  112. let s:bold = 'bold,'
  113. if g:gruvbox_bold == 0
  114. let s:bold = ''
  115. endif
  116. let s:italic = 'italic,'
  117. if g:gruvbox_italic == 0
  118. let s:italic = ''
  119. endif
  120. let s:underline = 'underline,'
  121. if g:gruvbox_underline == 0
  122. let s:underline = ''
  123. endif
  124. let s:undercurl = 'undercurl,'
  125. if g:gruvbox_undercurl == 0
  126. let s:undercurl = ''
  127. endif
  128. let s:inverse = 'inverse,'
  129. if g:gruvbox_inverse == 0
  130. let s:inverse = ''
  131. endif
  132. " }}}
  133. " Setup Colors: {{{
  134. let s:vim_bg = ['bg', 'bg']
  135. let s:vim_fg = ['fg', 'fg']
  136. let s:none = ['NONE', 'NONE']
  137. " determine relative colors
  138. if s:is_dark
  139. let s:bg0 = s:gb.dark0
  140. if g:gruvbox_contrast_dark == 'soft'
  141. let s:bg0 = s:gb.dark0_soft
  142. elseif g:gruvbox_contrast_dark == 'hard'
  143. let s:bg0 = s:gb.dark0_hard
  144. endif
  145. let s:bg1 = s:gb.dark1
  146. let s:bg2 = s:gb.dark2
  147. let s:bg3 = s:gb.dark3
  148. let s:bg4 = s:gb.dark4
  149. let s:gray = s:gb.gray_245
  150. let s:fg0 = s:gb.light0
  151. let s:fg1 = s:gb.light1
  152. let s:fg2 = s:gb.light2
  153. let s:fg3 = s:gb.light3
  154. let s:fg4 = s:gb.light4
  155. let s:fg4_256 = s:gb.light4_256
  156. let s:red = s:gb.bright_red
  157. let s:green = s:gb.bright_green
  158. let s:yellow = s:gb.bright_yellow
  159. let s:blue = s:gb.bright_blue
  160. let s:purple = s:gb.bright_purple
  161. let s:aqua = s:gb.bright_aqua
  162. let s:orange = s:gb.bright_orange
  163. else
  164. let s:bg0 = s:gb.light0
  165. if g:gruvbox_contrast_light == 'soft'
  166. let s:bg0 = s:gb.light0_soft
  167. elseif g:gruvbox_contrast_light == 'hard'
  168. let s:bg0 = s:gb.light0_hard
  169. endif
  170. let s:bg1 = s:gb.light1
  171. let s:bg2 = s:gb.light2
  172. let s:bg3 = s:gb.light3
  173. let s:bg4 = s:gb.light4
  174. let s:gray = s:gb.gray_244
  175. let s:fg0 = s:gb.dark0
  176. let s:fg1 = s:gb.dark1
  177. let s:fg2 = s:gb.dark2
  178. let s:fg3 = s:gb.dark3
  179. let s:fg4 = s:gb.dark4
  180. let s:fg4_256 = s:gb.dark4_256
  181. let s:red = s:gb.faded_red
  182. let s:green = s:gb.faded_green
  183. let s:yellow = s:gb.faded_yellow
  184. let s:blue = s:gb.faded_blue
  185. let s:purple = s:gb.faded_purple
  186. let s:aqua = s:gb.faded_aqua
  187. let s:orange = s:gb.faded_orange
  188. endif
  189. " reset to 16 colors fallback
  190. if g:gruvbox_termcolors == 16
  191. let s:bg0[1] = 0
  192. let s:fg4[1] = 7
  193. let s:gray[1] = 8
  194. let s:red[1] = 9
  195. let s:green[1] = 10
  196. let s:yellow[1] = 11
  197. let s:blue[1] = 12
  198. let s:purple[1] = 13
  199. let s:aqua[1] = 14
  200. let s:fg1[1] = 15
  201. endif
  202. " save current relative colors back to palette dictionary
  203. let s:gb.bg0 = s:bg0
  204. let s:gb.bg1 = s:bg1
  205. let s:gb.bg2 = s:bg2
  206. let s:gb.bg3 = s:bg3
  207. let s:gb.bg4 = s:bg4
  208. let s:gb.gray = s:gray
  209. let s:gb.fg0 = s:fg0
  210. let s:gb.fg1 = s:fg1
  211. let s:gb.fg2 = s:fg2
  212. let s:gb.fg3 = s:fg3
  213. let s:gb.fg4 = s:fg4
  214. let s:gb.fg4_256 = s:fg4_256
  215. let s:gb.red = s:red
  216. let s:gb.green = s:green
  217. let s:gb.yellow = s:yellow
  218. let s:gb.blue = s:blue
  219. let s:gb.purple = s:purple
  220. let s:gb.aqua = s:aqua
  221. let s:gb.orange = s:orange
  222. " }}}
  223. " Overload Setting: {{{
  224. let s:hls_cursor = s:orange
  225. if exists('g:gruvbox_hls_cursor')
  226. let s:hls_cursor = get(s:gb, g:gruvbox_hls_cursor)
  227. endif
  228. let s:number_column = s:none
  229. if exists('g:gruvbox_number_column')
  230. let s:number_column = get(s:gb, g:gruvbox_number_column)
  231. endif
  232. let s:sign_column = s:bg1
  233. if exists('g:gitgutter_override_sign_column_highlight') &&
  234. \ g:gitgutter_override_sign_column_highlight == 1
  235. let s:sign_column = s:number_column
  236. else
  237. let g:gitgutter_override_sign_column_highlight = 0
  238. if exists('g:gruvbox_sign_column')
  239. let s:sign_column = get(s:gb, g:gruvbox_sign_column)
  240. endif
  241. endif
  242. let s:color_column = s:bg1
  243. if exists('g:gruvbox_color_column')
  244. let s:color_column = get(s:gb, g:gruvbox_color_column)
  245. endif
  246. let s:vert_split = s:bg2
  247. if exists('g:gruvbox_vert_split')
  248. let s:vert_split = get(s:gb, g:gruvbox_vert_split)
  249. endif
  250. let s:invert_signs = ''
  251. if exists('g:gruvbox_invert_signs')
  252. if g:gruvbox_invert_signs == 1
  253. let s:invert_signs = s:inverse
  254. endif
  255. endif
  256. let s:invert_selection = s:inverse
  257. if exists('g:gruvbox_invert_selection')
  258. if g:gruvbox_invert_selection == 0
  259. let s:invert_selection = ''
  260. endif
  261. endif
  262. let s:invert_tabline = ''
  263. if exists('g:gruvbox_invert_tabline')
  264. if g:gruvbox_invert_tabline == 1
  265. let s:invert_tabline = s:inverse
  266. endif
  267. endif
  268. let s:italicize_comments = s:italic
  269. if exists('g:gruvbox_italicize_comments')
  270. if g:gruvbox_italicize_comments == 0
  271. let s:italicize_comments = ''
  272. endif
  273. endif
  274. let s:italicize_strings = ''
  275. if exists('g:gruvbox_italicize_strings')
  276. if g:gruvbox_italicize_strings == 1
  277. let s:italicize_strings = s:italic
  278. endif
  279. endif
  280. " }}}
  281. " Highlighting Function: {{{
  282. function! s:HL(group, fg, ...)
  283. " Arguments: group, guifg, guibg, gui, guisp
  284. " foreground
  285. let fg = a:fg
  286. " background
  287. if a:0 >= 1
  288. let bg = a:1
  289. else
  290. let bg = s:none
  291. endif
  292. " emphasis
  293. if a:0 >= 2 && strlen(a:2)
  294. let emstr = a:2
  295. else
  296. let emstr = 'NONE,'
  297. endif
  298. " special fallback
  299. if a:0 >= 3
  300. if g:gruvbox_guisp_fallback != 'NONE'
  301. let fg = a:3
  302. endif
  303. " bg fallback mode should invert higlighting
  304. if g:gruvbox_guisp_fallback == 'bg'
  305. let emstr .= 'inverse,'
  306. endif
  307. endif
  308. let histring = [ 'hi', a:group,
  309. \ 'guifg=' . fg[0], 'ctermfg=' . fg[1],
  310. \ 'guibg=' . bg[0], 'ctermbg=' . bg[1],
  311. \ 'gui=' . emstr[:-2], 'cterm=' . emstr[:-2]
  312. \ ]
  313. " special
  314. if a:0 >= 3
  315. call add(histring, 'guisp=' . a:3[0])
  316. endif
  317. execute join(histring, ' ')
  318. endfunction
  319. " }}}
  320. " Gruvbox Hi Groups: {{{
  321. " memoize common hi groups
  322. call s:HL('GruvboxFg0', s:fg0)
  323. call s:HL('GruvboxFg1', s:fg1)
  324. call s:HL('GruvboxFg2', s:fg2)
  325. call s:HL('GruvboxFg3', s:fg3)
  326. call s:HL('GruvboxFg4', s:fg4)
  327. call s:HL('GruvboxGray', s:gray)
  328. call s:HL('GruvboxBg0', s:bg0)
  329. call s:HL('GruvboxBg1', s:bg1)
  330. call s:HL('GruvboxBg2', s:bg2)
  331. call s:HL('GruvboxBg3', s:bg3)
  332. call s:HL('GruvboxBg4', s:bg4)
  333. call s:HL('GruvboxRed', s:red)
  334. call s:HL('GruvboxRedBold', s:red, s:none, s:bold)
  335. call s:HL('GruvboxGreen', s:green)
  336. call s:HL('GruvboxGreenBold', s:green, s:none, s:bold)
  337. call s:HL('GruvboxYellow', s:yellow)
  338. call s:HL('GruvboxYellowBold', s:yellow, s:none, s:bold)
  339. call s:HL('GruvboxBlue', s:blue)
  340. call s:HL('GruvboxBlueBold', s:blue, s:none, s:bold)
  341. call s:HL('GruvboxPurple', s:purple)
  342. call s:HL('GruvboxPurpleBold', s:purple, s:none, s:bold)
  343. call s:HL('GruvboxAqua', s:aqua)
  344. call s:HL('GruvboxAquaBold', s:aqua, s:none, s:bold)
  345. call s:HL('GruvboxOrange', s:orange)
  346. call s:HL('GruvboxOrangeBold', s:orange, s:none, s:bold)
  347. call s:HL('GruvboxRedSign', s:red, s:sign_column, s:invert_signs)
  348. call s:HL('GruvboxGreenSign', s:green, s:sign_column, s:invert_signs)
  349. call s:HL('GruvboxYellowSign', s:yellow, s:sign_column, s:invert_signs)
  350. call s:HL('GruvboxBlueSign', s:blue, s:sign_column, s:invert_signs)
  351. call s:HL('GruvboxPurpleSign', s:purple, s:sign_column, s:invert_signs)
  352. call s:HL('GruvboxAquaSign', s:aqua, s:sign_column, s:invert_signs)
  353. " }}}
  354. " Vanilla colorscheme ---------------------------------------------------------
  355. " General UI: {{{
  356. " Normal text
  357. call s:HL('Normal', s:fg1, s:bg0)
  358. " Correct background (see issue #7):
  359. " --- Problem with changing between dark and light on 256 color terminal
  360. " --- https://github.com/morhetz/gruvbox/issues/7
  361. if s:is_dark
  362. set background=dark
  363. else
  364. set background=light
  365. endif
  366. if version >= 700
  367. " Screen line that the cursor is
  368. call s:HL('CursorLine', s:none, s:bg1)
  369. " Screen column that the cursor is
  370. hi! link CursorColumn CursorLine
  371. " Tab pages line filler
  372. call s:HL('TabLineFill', s:bg4, s:vim_bg, s:invert_tabline)
  373. " Active tab page label
  374. call s:HL('TabLineSel', s:vim_bg, s:bg4, s:bold . s:invert_tabline)
  375. " Not active tab page label
  376. hi! link TabLine TabLineFill
  377. " Match paired bracket under the cursor
  378. call s:HL('MatchParen', s:none, s:bg3, s:bold)
  379. endif
  380. if version >= 703
  381. " Highlighted screen columns
  382. call s:HL('ColorColumn', s:none, s:color_column)
  383. " Concealed element: \lambda → λ
  384. call s:HL('Conceal', s:blue, s:none)
  385. " Line number of CursorLine
  386. call s:HL('CursorLineNr', s:yellow, s:bg1)
  387. endif
  388. hi! link NonText GruvboxBg2
  389. hi! link SpecialKey GruvboxBg2
  390. call s:HL('Visual', s:none, s:bg3, s:invert_selection)
  391. hi! link VisualNOS Visual
  392. call s:HL('Search', s:yellow, s:bg0, s:inverse)
  393. call s:HL('IncSearch', s:hls_cursor, s:bg0, s:inverse)
  394. call s:HL('Underlined', s:blue, s:none, s:underline)
  395. call s:HL('StatusLine', s:bg4, s:bg0, s:bold . s:inverse)
  396. call s:HL('StatusLineNC', s:bg2, s:fg4, s:bold . s:inverse)
  397. " The column separating vertically split windows
  398. call s:HL('VertSplit', s:fg4, s:vert_split)
  399. " Current match in wildmenu completion
  400. call s:HL('WildMenu', s:blue, s:bg2, s:bold)
  401. " Directory names, special names in listing
  402. hi! link Directory GruvboxGreenBold
  403. " Titles for output from :set all, :autocmd, etc.
  404. hi! link Title GruvboxGreenBold
  405. " Error messages on the command line
  406. call s:HL('ErrorMsg', s:bg0, s:red, s:bold)
  407. " More prompt: -- More --
  408. hi! link MoreMsg GruvboxYellowBold
  409. " Current mode message: -- INSERT --
  410. hi! link ModeMsg GruvboxYellowBold
  411. " 'Press enter' prompt and yes/no questions
  412. hi! link Question GruvboxOrangeBold
  413. " Warning messages
  414. hi! link WarningMsg GruvboxRedBold
  415. " }}}
  416. " Gutter: {{{
  417. " Line number for :number and :# commands
  418. call s:HL('LineNr', s:bg4, s:number_column)
  419. " Column where signs are displayed
  420. call s:HL('SignColumn', s:none, s:sign_column)
  421. " Line used for closed folds
  422. call s:HL('Folded', s:gray, s:bg1, s:italic)
  423. " Column where folds are displayed
  424. call s:HL('FoldColumn', s:gray, s:bg1)
  425. " }}}
  426. " Cursor: {{{
  427. " Character under cursor
  428. call s:HL('Cursor', s:none, s:none, s:inverse)
  429. " Visual mode cursor, selection
  430. hi! link vCursor Cursor
  431. " Input moder cursor
  432. hi! link iCursor Cursor
  433. " Language mapping cursor
  434. hi! link lCursor Cursor
  435. " }}}
  436. " Syntax Highlighting: {{{
  437. if g:gruvbox_improved_strings == 0
  438. hi! link Special GruvboxOrange
  439. else
  440. call s:HL('Special', s:bg1, s:orange, s:italic)
  441. endif
  442. call s:HL('Comment', s:gray, s:none, s:italicize_comments)
  443. call s:HL('Todo', s:vim_fg, s:vim_bg, s:bold . s:italic)
  444. call s:HL('Error', s:red, s:vim_bg, s:bold . s:inverse)
  445. " Generic statement
  446. hi! link Statement GruvboxRed
  447. " if, then, else, endif, swicth, etc.
  448. hi! link Conditional GruvboxRed
  449. " for, do, while, etc.
  450. hi! link Repeat GruvboxRed
  451. " case, default, etc.
  452. hi! link Label GruvboxRed
  453. " try, catch, throw
  454. hi! link Exception GruvboxRed
  455. " sizeof, "+", "*", etc.
  456. hi! link Operator Normal
  457. " Any other keyword
  458. hi! link Keyword GruvboxRed
  459. " Variable name
  460. hi! link Identifier GruvboxBlue
  461. " Function name
  462. hi! link Function GruvboxGreenBold
  463. " Generic preprocessor
  464. hi! link PreProc GruvboxAqua
  465. " Preprocessor #include
  466. hi! link Include GruvboxAqua
  467. " Preprocessor #define
  468. hi! link Define GruvboxAqua
  469. " Same as Define
  470. hi! link Macro GruvboxAqua
  471. " Preprocessor #if, #else, #endif, etc.
  472. hi! link PreCondit GruvboxAqua
  473. " Generic constant
  474. hi! link Constant GruvboxPurple
  475. " Character constant: 'c', '/n'
  476. hi! link Character GruvboxPurple
  477. " String constant: "this is a string"
  478. if g:gruvbox_improved_strings == 0
  479. call s:HL('String', s:green, s:none, s:italicize_strings)
  480. else
  481. call s:HL('String', s:bg1, s:fg1, s:italicize_strings)
  482. endif
  483. " Boolean constant: TRUE, false
  484. hi! link Boolean GruvboxPurple
  485. " Number constant: 234, 0xff
  486. hi! link Number GruvboxPurple
  487. " Floating point constant: 2.3e10
  488. hi! link Float GruvboxPurple
  489. " Generic type
  490. hi! link Type GruvboxYellow
  491. " static, register, volatile, etc
  492. hi! link StorageClass GruvboxOrange
  493. " struct, union, enum, etc.
  494. hi! link Structure GruvboxAqua
  495. " typedef
  496. hi! link Typedef GruvboxYellow
  497. " }}}
  498. " Completion Menu: {{{
  499. if version >= 700
  500. " Popup menu: normal item
  501. call s:HL('Pmenu', s:fg1, s:bg2)
  502. " Popup menu: selected item
  503. call s:HL('PmenuSel', s:bg2, s:blue, s:bold)
  504. " Popup menu: scrollbar
  505. call s:HL('PmenuSbar', s:none, s:bg2)
  506. " Popup menu: scrollbar thumb
  507. call s:HL('PmenuThumb', s:none, s:bg4)
  508. endif
  509. " }}}
  510. " Diffs: {{{
  511. call s:HL('DiffDelete', s:red, s:bg0, s:inverse)
  512. call s:HL('DiffAdd', s:green, s:bg0, s:inverse)
  513. "call s:HL('DiffChange', s:bg0, s:blue)
  514. "call s:HL('DiffText', s:bg0, s:yellow)
  515. " Alternative setting
  516. call s:HL('DiffChange', s:aqua, s:bg0, s:inverse)
  517. call s:HL('DiffText', s:yellow, s:bg0, s:inverse)
  518. " }}}
  519. " Spelling: {{{
  520. if has("spell")
  521. " Not capitalised word, or compile warnings
  522. if g:gruvbox_improved_warnings == 0
  523. call s:HL('SpellCap', s:none, s:none, s:undercurl, s:red)
  524. else
  525. call s:HL('SpellCap', s:green, s:none, s:bold . s:italic)
  526. endif
  527. " Not recognized word
  528. call s:HL('SpellBad', s:none, s:none, s:undercurl, s:blue)
  529. " Wrong spelling for selected region
  530. call s:HL('SpellLocal', s:none, s:none, s:undercurl, s:aqua)
  531. " Rare word
  532. call s:HL('SpellRare', s:none, s:none, s:undercurl, s:purple)
  533. endif
  534. " }}}
  535. " Plugin specific -------------------------------------------------------------
  536. " EasyMotion: {{{
  537. hi! link EasyMotionTarget Search
  538. hi! link EasyMotionShade Comment
  539. " }}}
  540. " Sneak: {{{
  541. hi! link SneakPluginTarget Search
  542. hi! link SneakStreakTarget Search
  543. call s:HL('SneakStreakMask', s:yellow, s:yellow)
  544. hi! link SneakStreakStatusLine Search
  545. " }}}
  546. " Indent Guides: {{{
  547. if !exists('g:indent_guides_auto_colors')
  548. let g:indent_guides_auto_colors = 0
  549. endif
  550. if g:indent_guides_auto_colors == 0
  551. if g:gruvbox_invert_indent_guides == 0
  552. call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2)
  553. call s:HL('IndentGuidesEven', s:vim_bg, s:bg1)
  554. else
  555. call s:HL('IndentGuidesOdd', s:vim_bg, s:bg2, s:inverse)
  556. call s:HL('IndentGuidesEven', s:vim_bg, s:bg3, s:inverse)
  557. endif
  558. endif
  559. " }}}
  560. " IndentLine: {{{
  561. if !exists('g:indentLine_color_term')
  562. let g:indentLine_color_term = s:bg2[1]
  563. endif
  564. if !exists('g:indentLine_color_gui')
  565. let g:indentLine_color_gui = s:bg2[0]
  566. endif
  567. " }}}
  568. " Rainbow Parentheses: {{{
  569. if !exists('g:rbpt_colorpairs')
  570. let g:rbpt_colorpairs =
  571. \ [
  572. \ ['blue', '#458588'], ['magenta', '#b16286'],
  573. \ ['red', '#cc241d'], ['166', '#d65d0e']
  574. \ ]
  575. endif
  576. let g:rainbow_guifgs = [ '#d65d0e', '#cc241d', '#b16286', '#458588' ]
  577. let g:rainbow_ctermfgs = [ '166', 'red', 'magenta', 'blue' ]
  578. if !exists('g:rainbow_conf')
  579. let g:rainbow_conf = {}
  580. endif
  581. if !has_key(g:rainbow_conf, 'guifgs')
  582. let g:rainbow_conf['guifgs'] = g:rainbow_guifgs
  583. endif
  584. if !has_key(g:rainbow_conf, 'ctermfgs')
  585. let g:rainbow_conf['ctermfgs'] = g:rainbow_ctermfgs
  586. endif
  587. let g:niji_dark_colours = g:rbpt_colorpairs
  588. let g:niji_light_colours = g:rbpt_colorpairs
  589. "}}}
  590. " GitGutter: {{{
  591. hi! link GitGutterAdd GruvboxGreenSign
  592. hi! link GitGutterChange GruvboxAquaSign
  593. hi! link GitGutterDelete GruvboxRedSign
  594. hi! link GitGutterChangeDelete GruvboxAquaSign
  595. " }}}
  596. " GitCommit: "{{{
  597. hi! link gitcommitSelectedFile GruvboxGreen
  598. hi! link gitcommitDiscardedFile GruvboxRed
  599. " }}}
  600. " Signify: {{{
  601. hi! link SignifySignAdd GruvboxGreenSign
  602. hi! link SignifySignChange GruvboxAquaSign
  603. hi! link SignifySignDelete GruvboxRedSign
  604. " }}}
  605. " Syntastic: {{{
  606. call s:HL('SyntasticError', s:none, s:none, s:undercurl, s:red)
  607. call s:HL('SyntasticWarning', s:none, s:none, s:undercurl, s:yellow)
  608. hi! link SyntasticErrorSign GruvboxRedSign
  609. hi! link SyntasticWarningSign GruvboxYellowSign
  610. " }}}
  611. " Signature: {{{
  612. hi! link SignatureMarkText GruvboxBlueSign
  613. hi! link SignatureMarkerText GruvboxPurpleSign
  614. " }}}
  615. " ShowMarks: {{{
  616. hi! link ShowMarksHLl GruvboxBlueSign
  617. hi! link ShowMarksHLu GruvboxBlueSign
  618. hi! link ShowMarksHLo GruvboxBlueSign
  619. hi! link ShowMarksHLm GruvboxBlueSign
  620. " }}}
  621. " CtrlP: {{{
  622. hi! link CtrlPMatch GruvboxYellow
  623. hi! link CtrlPNoEntries GruvboxRed
  624. hi! link CtrlPPrtBase GruvboxBg2
  625. hi! link CtrlPPrtCursor GruvboxBlue
  626. hi! link CtrlPLinePre GruvboxBg2
  627. call s:HL('CtrlPMode1', s:blue, s:bg2, s:bold)
  628. call s:HL('CtrlPMode2', s:bg0, s:blue, s:bold)
  629. call s:HL('CtrlPStats', s:fg4, s:bg2, s:bold)
  630. " }}}
  631. " Startify: {{{
  632. hi! link StartifyBracket GruvboxFg3
  633. hi! link StartifyFile GruvboxFg0
  634. hi! link StartifyNumber GruvboxBlue
  635. hi! link StartifyPath GruvboxGray
  636. hi! link StartifySlash GruvboxGray
  637. hi! link StartifySection GruvboxYellow
  638. hi! link StartifySpecial GruvboxBg2
  639. hi! link StartifyHeader GruvboxOrange
  640. hi! link StartifyFooter GruvboxBg2
  641. " }}}
  642. " Vimshell: {{{
  643. let g:vimshell_escape_colors = [
  644. \ s:bg4[0], s:red[0], s:green[0], s:yellow[0],
  645. \ s:blue[0], s:purple[0], s:aqua[0], s:fg4[0],
  646. \ s:bg0[0], s:red[0], s:green[0], s:orange[0],
  647. \ s:blue[0], s:purple[0], s:aqua[0], s:fg0[0]
  648. \ ]
  649. " }}}
  650. " BufTabLine: {{{
  651. call s:HL('BufTabLineCurrent', s:bg0, s:fg4)
  652. call s:HL('BufTabLineActive', s:fg4, s:bg2)
  653. call s:HL('BufTabLineHidden', s:bg4, s:bg1)
  654. call s:HL('BufTabLineFill', s:bg0, s:bg0)
  655. " }}}
  656. " Asynchronous Lint Engine: {{{
  657. call s:HL('ALEError', s:none, s:none, s:undercurl, s:red)
  658. call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow)
  659. hi! link ALEErrorSign GruvboxRedSign
  660. hi! link ALEWarningSign GruvboxYellowSign
  661. " }}}
  662. " Filetype specific -----------------------------------------------------------
  663. " Diff: {{{
  664. hi! link diffAdded GruvboxGreen
  665. hi! link diffRemoved GruvboxRed
  666. hi! link diffChanged GruvboxAqua
  667. hi! link diffFile GruvboxOrange
  668. hi! link diffNewFile GruvboxYellow
  669. hi! link diffLine GruvboxBlue
  670. " }}}
  671. " Html: {{{
  672. hi! link htmlTag GruvboxBlue
  673. hi! link htmlEndTag GruvboxBlue
  674. hi! link htmlTagName GruvboxAquaBold
  675. hi! link htmlArg GruvboxAqua
  676. hi! link htmlScriptTag GruvboxPurple
  677. hi! link htmlTagN GruvboxFg1
  678. hi! link htmlSpecialTagName GruvboxAquaBold
  679. call s:HL('htmlLink', s:fg4, s:none, s:underline)
  680. hi! link htmlSpecialChar GruvboxOrange
  681. call s:HL('htmlBold', s:vim_fg, s:vim_bg, s:bold)
  682. call s:HL('htmlBoldUnderline', s:vim_fg, s:vim_bg, s:bold . s:underline)
  683. call s:HL('htmlBoldItalic', s:vim_fg, s:vim_bg, s:bold . s:italic)
  684. call s:HL('htmlBoldUnderlineItalic', s:vim_fg, s:vim_bg, s:bold . s:underline . s:italic)
  685. call s:HL('htmlUnderline', s:vim_fg, s:vim_bg, s:underline)
  686. call s:HL('htmlUnderlineItalic', s:vim_fg, s:vim_bg, s:underline . s:italic)
  687. call s:HL('htmlItalic', s:vim_fg, s:vim_bg, s:italic)
  688. " }}}
  689. " Xml: {{{
  690. hi! link xmlTag GruvboxBlue
  691. hi! link xmlEndTag GruvboxBlue
  692. hi! link xmlTagName GruvboxBlue
  693. hi! link xmlEqual GruvboxBlue
  694. hi! link docbkKeyword GruvboxAquaBold
  695. hi! link xmlDocTypeDecl GruvboxGray
  696. hi! link xmlDocTypeKeyword GruvboxPurple
  697. hi! link xmlCdataStart GruvboxGray
  698. hi! link xmlCdataCdata GruvboxPurple
  699. hi! link dtdFunction GruvboxGray
  700. hi! link dtdTagName GruvboxPurple
  701. hi! link xmlAttrib GruvboxAqua
  702. hi! link xmlProcessingDelim GruvboxGray
  703. hi! link dtdParamEntityPunct GruvboxGray
  704. hi! link dtdParamEntityDPunct GruvboxGray
  705. hi! link xmlAttribPunct GruvboxGray
  706. hi! link xmlEntity GruvboxOrange
  707. hi! link xmlEntityPunct GruvboxOrange
  708. " }}}
  709. " Vim: {{{
  710. call s:HL('vimCommentTitle', s:fg4_256, s:none, s:bold . s:italicize_comments)
  711. hi! link vimNotation GruvboxOrange
  712. hi! link vimBracket GruvboxOrange
  713. hi! link vimMapModKey GruvboxOrange
  714. hi! link vimFuncSID GruvboxFg3
  715. hi! link vimSetSep GruvboxFg3
  716. hi! link vimSep GruvboxFg3
  717. hi! link vimContinue GruvboxFg3
  718. " }}}
  719. " Clojure: {{{
  720. hi! link clojureKeyword GruvboxBlue
  721. hi! link clojureCond GruvboxOrange
  722. hi! link clojureSpecial GruvboxOrange
  723. hi! link clojureDefine GruvboxOrange
  724. hi! link clojureFunc GruvboxYellow
  725. hi! link clojureRepeat GruvboxYellow
  726. hi! link clojureCharacter GruvboxAqua
  727. hi! link clojureStringEscape GruvboxAqua
  728. hi! link clojureException GruvboxRed
  729. hi! link clojureRegexp GruvboxAqua
  730. hi! link clojureRegexpEscape GruvboxAqua
  731. call s:HL('clojureRegexpCharClass', s:fg3, s:none, s:bold)
  732. hi! link clojureRegexpMod clojureRegexpCharClass
  733. hi! link clojureRegexpQuantifier clojureRegexpCharClass
  734. hi! link clojureParen GruvboxFg3
  735. hi! link clojureAnonArg GruvboxYellow
  736. hi! link clojureVariable GruvboxBlue
  737. hi! link clojureMacro GruvboxOrange
  738. hi! link clojureMeta GruvboxYellow
  739. hi! link clojureDeref GruvboxYellow
  740. hi! link clojureQuote GruvboxYellow
  741. hi! link clojureUnquote GruvboxYellow
  742. " }}}
  743. " C: {{{
  744. hi! link cOperator GruvboxPurple
  745. hi! link cStructure GruvboxOrange
  746. " }}}
  747. " Python: {{{
  748. hi! link pythonBuiltin GruvboxOrange
  749. hi! link pythonBuiltinObj GruvboxOrange
  750. hi! link pythonBuiltinFunc GruvboxOrange
  751. hi! link pythonFunction GruvboxAqua
  752. hi! link pythonDecorator GruvboxRed
  753. hi! link pythonInclude GruvboxBlue
  754. hi! link pythonImport GruvboxBlue
  755. hi! link pythonRun GruvboxBlue
  756. hi! link pythonCoding GruvboxBlue
  757. hi! link pythonOperator GruvboxRed
  758. hi! link pythonExceptions GruvboxPurple
  759. hi! link pythonBoolean GruvboxPurple
  760. hi! link pythonDot GruvboxFg3
  761. " }}}
  762. " CSS: {{{
  763. hi! link cssBraces GruvboxBlue
  764. hi! link cssFunctionName GruvboxYellow
  765. hi! link cssIdentifier GruvboxOrange
  766. hi! link cssClassName GruvboxGreen
  767. hi! link cssColor GruvboxBlue
  768. hi! link cssSelectorOp GruvboxBlue
  769. hi! link cssSelectorOp2 GruvboxBlue
  770. hi! link cssImportant GruvboxGreen
  771. hi! link cssVendor GruvboxFg1
  772. hi! link cssTextProp GruvboxAqua
  773. hi! link cssAnimationProp GruvboxAqua
  774. hi! link cssUIProp GruvboxYellow
  775. hi! link cssTransformProp GruvboxAqua
  776. hi! link cssTransitionProp GruvboxAqua
  777. hi! link cssPrintProp GruvboxAqua
  778. hi! link cssPositioningProp GruvboxYellow
  779. hi! link cssBoxProp GruvboxAqua
  780. hi! link cssFontDescriptorProp GruvboxAqua
  781. hi! link cssFlexibleBoxProp GruvboxAqua
  782. hi! link cssBorderOutlineProp GruvboxAqua
  783. hi! link cssBackgroundProp GruvboxAqua
  784. hi! link cssMarginProp GruvboxAqua
  785. hi! link cssListProp GruvboxAqua
  786. hi! link cssTableProp GruvboxAqua
  787. hi! link cssFontProp GruvboxAqua
  788. hi! link cssPaddingProp GruvboxAqua
  789. hi! link cssDimensionProp GruvboxAqua
  790. hi! link cssRenderProp GruvboxAqua
  791. hi! link cssColorProp GruvboxAqua
  792. hi! link cssGeneratedContentProp GruvboxAqua
  793. " }}}
  794. " JavaScript: {{{
  795. hi! link javaScriptBraces GruvboxFg1
  796. hi! link javaScriptFunction GruvboxAqua
  797. hi! link javaScriptIdentifier GruvboxRed
  798. hi! link javaScriptMember GruvboxBlue
  799. hi! link javaScriptNumber GruvboxPurple
  800. hi! link javaScriptNull GruvboxPurple
  801. hi! link javaScriptParens GruvboxFg3
  802. " }}}
  803. " YAJS: {{{
  804. hi! link javascriptImport GruvboxAqua
  805. hi! link javascriptExport GruvboxAqua
  806. hi! link javascriptClassKeyword GruvboxAqua
  807. hi! link javascriptClassExtends GruvboxAqua
  808. hi! link javascriptDefault GruvboxAqua
  809. hi! link javascriptClassName GruvboxYellow
  810. hi! link javascriptClassSuperName GruvboxYellow
  811. hi! link javascriptGlobal GruvboxYellow
  812. hi! link javascriptEndColons GruvboxFg1
  813. hi! link javascriptFuncArg GruvboxFg1
  814. hi! link javascriptGlobalMethod GruvboxFg1
  815. hi! link javascriptNodeGlobal GruvboxFg1
  816. " hi! link javascriptVariable GruvboxOrange
  817. hi! link javascriptVariable GruvboxRed
  818. " hi! link javascriptIdentifier GruvboxOrange
  819. " hi! link javascriptClassSuper GruvboxOrange
  820. hi! link javascriptIdentifier GruvboxOrange
  821. hi! link javascriptClassSuper GruvboxOrange
  822. " hi! link javascriptFuncKeyword GruvboxOrange
  823. " hi! link javascriptAsyncFunc GruvboxOrange
  824. hi! link javascriptFuncKeyword GruvboxAqua
  825. hi! link javascriptAsyncFunc GruvboxAqua
  826. hi! link javascriptClassStatic GruvboxOrange
  827. hi! link javascriptOperator GruvboxRed
  828. hi! link javascriptForOperator GruvboxRed
  829. hi! link javascriptYield GruvboxRed
  830. hi! link javascriptExceptions GruvboxRed
  831. hi! link javascriptMessage GruvboxRed
  832. hi! link javascriptTemplateSB GruvboxAqua
  833. hi! link javascriptTemplateSubstitution GruvboxFg1
  834. " hi! link javascriptLabel GruvboxBlue
  835. " hi! link javascriptObjectLabel GruvboxBlue
  836. " hi! link javascriptPropertyName GruvboxBlue
  837. hi! link javascriptLabel GruvboxFg1
  838. hi! link javascriptObjectLabel GruvboxFg1
  839. hi! link javascriptPropertyName GruvboxFg1
  840. hi! link javascriptLogicSymbols GruvboxFg1
  841. hi! link javascriptArrowFunc GruvboxFg1
  842. hi! link javascriptDocParamName GruvboxFg4
  843. hi! link javascriptDocTags GruvboxFg4
  844. hi! link javascriptDocNotation GruvboxFg4
  845. hi! link javascriptDocParamType GruvboxFg4
  846. hi! link javascriptDocNamedParamType GruvboxFg4
  847. " }}}
  848. " TypeScript: {{{
  849. hi! link typeScriptReserved GruvboxAqua
  850. hi! link typeScriptLabel GruvboxAqua
  851. hi! link typeScriptIdentifier GruvboxOrange
  852. hi! link typeScriptBraces GruvboxFg1
  853. hi! link typeScriptEndColons GruvboxFg1
  854. hi! link typeScriptDOMObjects GruvboxFg1
  855. hi! link typeScriptAjaxMethods GruvboxFg1
  856. hi! link typeScriptLogicSymbols GruvboxFg1
  857. hi! link typeScriptDocSeeTag Comment
  858. hi! link typeScriptDocParam Comment
  859. hi! link typeScriptDocTags vimCommentTitle
  860. " }}}
  861. " CoffeeScript: {{{
  862. hi! link coffeeExtendedOp GruvboxFg3
  863. hi! link coffeeSpecialOp GruvboxFg3
  864. hi! link coffeeCurly GruvboxOrange
  865. hi! link coffeeParen GruvboxFg3
  866. hi! link coffeeBracket GruvboxOrange
  867. " }}}
  868. " Ruby: {{{
  869. hi! link rubyStringDelimiter GruvboxGreen
  870. hi! link rubyInterpolationDelimiter GruvboxAqua
  871. " }}}
  872. " ObjectiveC: {{{
  873. hi! link objcTypeModifier GruvboxRed
  874. hi! link objcDirective GruvboxBlue
  875. " }}}
  876. " Go: {{{
  877. hi! link goDirective GruvboxAqua
  878. hi! link goConstants GruvboxPurple
  879. hi! link goDeclaration GruvboxRed
  880. hi! link goDeclType GruvboxBlue
  881. hi! link goBuiltins GruvboxOrange
  882. " }}}
  883. " Lua: {{{
  884. hi! link luaIn GruvboxRed
  885. hi! link luaFunction GruvboxAqua
  886. hi! link luaTable GruvboxOrange
  887. " }}}
  888. " MoonScript: {{{
  889. hi! link moonSpecialOp GruvboxFg3
  890. hi! link moonExtendedOp GruvboxFg3
  891. hi! link moonFunction GruvboxFg3
  892. hi! link moonObject GruvboxYellow
  893. " }}}
  894. " Java: {{{
  895. hi! link javaAnnotation GruvboxBlue
  896. hi! link javaDocTags GruvboxAqua
  897. hi! link javaCommentTitle vimCommentTitle
  898. hi! link javaParen GruvboxFg3
  899. hi! link javaParen1 GruvboxFg3
  900. hi! link javaParen2 GruvboxFg3
  901. hi! link javaParen3 GruvboxFg3
  902. hi! link javaParen4 GruvboxFg3
  903. hi! link javaParen5 GruvboxFg3
  904. hi! link javaOperator GruvboxOrange
  905. hi! link javaVarArg GruvboxGreen
  906. " }}}
  907. " Elixir: {{{
  908. hi! link elixirDocString Comment
  909. hi! link elixirStringDelimiter GruvboxGreen
  910. hi! link elixirInterpolationDelimiter GruvboxAqua
  911. hi! link elixirModuleDeclaration GruvboxYellow
  912. " }}}
  913. " Scala: {{{
  914. " NB: scala vim syntax file is kinda horrible
  915. hi! link scalaNameDefinition GruvboxFg1
  916. hi! link scalaCaseFollowing GruvboxFg1
  917. hi! link scalaCapitalWord GruvboxFg1
  918. hi! link scalaTypeExtension GruvboxFg1
  919. hi! link scalaKeyword GruvboxRed
  920. hi! link scalaKeywordModifier GruvboxRed
  921. hi! link scalaSpecial GruvboxAqua
  922. hi! link scalaOperator GruvboxFg1
  923. hi! link scalaTypeDeclaration GruvboxYellow
  924. hi! link scalaTypeTypePostDeclaration GruvboxYellow
  925. hi! link scalaInstanceDeclaration GruvboxFg1
  926. hi! link scalaInterpolation GruvboxAqua
  927. " }}}
  928. " Markdown: {{{
  929. call s:HL('markdownItalic', s:fg3, s:none, s:italic)
  930. hi! link markdownH1 GruvboxGreenBold
  931. hi! link markdownH2 GruvboxGreenBold
  932. hi! link markdownH3 GruvboxYellowBold
  933. hi! link markdownH4 GruvboxYellowBold
  934. hi! link markdownH5 GruvboxYellow
  935. hi! link markdownH6 GruvboxYellow
  936. hi! link markdownCode GruvboxAqua
  937. hi! link markdownCodeBlock GruvboxAqua
  938. hi! link markdownCodeDelimiter GruvboxAqua
  939. hi! link markdownBlockquote GruvboxGray
  940. hi! link markdownListMarker GruvboxGray
  941. hi! link markdownOrderedListMarker GruvboxGray
  942. hi! link markdownRule GruvboxGray
  943. hi! link markdownHeadingRule GruvboxGray
  944. hi! link markdownUrlDelimiter GruvboxFg3
  945. hi! link markdownLinkDelimiter GruvboxFg3
  946. hi! link markdownLinkTextDelimiter GruvboxFg3
  947. hi! link markdownHeadingDelimiter GruvboxOrange
  948. hi! link markdownUrl GruvboxPurple
  949. hi! link markdownUrlTitleDelimiter GruvboxGreen
  950. call s:HL('markdownLinkText', s:gray, s:none, s:underline)
  951. hi! link markdownIdDeclaration markdownLinkText
  952. " }}}
  953. " Haskell: {{{
  954. " hi! link haskellType GruvboxYellow
  955. " hi! link haskellOperators GruvboxOrange
  956. " hi! link haskellConditional GruvboxAqua
  957. " hi! link haskellLet GruvboxOrange
  958. "
  959. hi! link haskellType GruvboxFg1
  960. hi! link haskellIdentifier GruvboxFg1
  961. hi! link haskellSeparator GruvboxFg1
  962. hi! link haskellDelimiter GruvboxFg4
  963. hi! link haskellOperators GruvboxBlue
  964. "
  965. hi! link haskellBacktick GruvboxOrange
  966. hi! link haskellStatement GruvboxOrange
  967. hi! link haskellConditional GruvboxOrange
  968. hi! link haskellLet GruvboxAqua
  969. hi! link haskellDefault GruvboxAqua
  970. hi! link haskellWhere GruvboxAqua
  971. hi! link haskellBottom GruvboxAqua
  972. hi! link haskellBlockKeywords GruvboxAqua
  973. hi! link haskellImportKeywords GruvboxAqua
  974. hi! link haskellDeclKeyword GruvboxAqua
  975. hi! link haskellDeriving GruvboxAqua
  976. hi! link haskellAssocType GruvboxAqua
  977. hi! link haskellNumber GruvboxPurple
  978. hi! link haskellPragma GruvboxPurple
  979. hi! link haskellString GruvboxGreen
  980. hi! link haskellChar GruvboxGreen
  981. " }}}
  982. " Json: {{{
  983. hi! link jsonKeyword GruvboxGreen
  984. hi! link jsonQuote GruvboxGreen
  985. hi! link jsonBraces GruvboxFg1
  986. hi! link jsonString GruvboxFg1
  987. " }}}
  988. " Functions -------------------------------------------------------------------
  989. " Search Highlighting Cursor {{{
  990. function! GruvboxHlsShowCursor()
  991. call s:HL('Cursor', s:bg0, s:hls_cursor)
  992. endfunction
  993. function! GruvboxHlsHideCursor()
  994. call s:HL('Cursor', s:none, s:none, s:inverse)
  995. endfunction
  996. " }}}
  997. " vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker: