Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim 8: add new highlight groups #188

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 96 additions & 2 deletions colors/gruvbox.vim
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ call s:HL('GruvboxBg2', s:gb.bg2)
call s:HL('GruvboxBg3', s:gb.bg3)
call s:HL('GruvboxBg4', s:gb.bg4)

call s:HL('GruvboxWhite', s:gb.fg1)
call s:HL('GruvboxRed', s:gb.red)
call s:HL('GruvboxRedBold', s:gb.red, s:none, s:bold)
call s:HL('GruvboxGreen', s:gb.green)
Expand Down Expand Up @@ -557,7 +558,7 @@ call s:HL('GruvboxOrangeUnderline', s:none, s:none, s:undercurl, s:gb.orange)
" Vanilla colorscheme ---------------------------------------------------------
" General UI: {{{

" Normal text
" Normal text, can't be used directly because of background cannot be overriden
call s:HL('Normal', s:gb.fg1, s:gb.bg0)

" Correct background (see issue #7):
Expand Down Expand Up @@ -699,6 +700,9 @@ hi! link Exception GruvboxRed
call s:HL('Operator', s:gb.orange, s:none, s:italicize_operators)
" Any other keyword
hi! link Keyword GruvboxRed
" separators
"hi! link Delimiter GruvboxOrange
"hi! link Bracket GruvboxFg3

" Variable name
hi! link Identifier GruvboxBlue
Expand Down Expand Up @@ -837,7 +841,97 @@ endif
if has('nvim')
" Highlight TSKeywordOperator as keywords
" https://github.com/nvim-treesitter/nvim-treesitter/issues/447
hi! link TSKeywordOperator GruvboxRed
hi! link TSKeywordOperator Keyword

hi! link @comment Comment
hi! link @error Error
hi! link @none NONE
hi! link @preproc PreProc
hi! link @define Define
hi! link @operator Operator

"hi! link @punctuation.delimiter Delimiter
"hi! link @punctuation.bracket Bracket
hi! link @punctuation.special Special

hi! link @string String
"hi! link @string.regex String
"hi! link @string.escape Constant
"hi! link @string.special Special

hi! link @character Character
"hi! link @character.special Special

hi! link @boolean Boolean
hi! link @number Number
hi! link @float Float

hi! link @keyword.operator Operator

hi! link @function Function
"hi! link @function.builtin Special
"hi! link @function.call Function
hi! link @function.macro Macro

"hi! link @method Function
"hi! link @method.call Function

"hi! link @constructor Special
"hi! link @parameter Identifier

hi! link @keyword Keyword
"hi! link @keyword.function Keyword
"hi! link @keyword.operator Keyword
"hi! link @keyword.return Keyword

hi! link @conditional Conditional
hi! link @repeat Repeat
hi! link @debug Debug
hi! link @Label Label
hi! link @include Include
hi! link @exception Exception

hi! link @type Type
"hi! link @type.builtin Type
"hi! link @type.qualifier Type
"hi! link @type.definition TypeDef

hi! link @storageclass StorageClass
"hi! link @attribute PreProc
"hi! link @field Identifier
"hi! link @property Identifier

hi! link @variable GruvboxWhite
"hi! link @variable.builtin Special

hi! link @constant Constant
"hi! link @constant.builtin Type
"hi! link @constant.macro Define

"hi! link @namespace Include
"hi! link @symbol Identifier

hi! link @text GruvboxWhite
hi! link @text.strong Bold
hi! link @text.emphasis Bold
hi! link @text.underline Underlined
hi! link @text.strike Strikethrough
hi! link @text.title Title
hi! link @text.literal String
hi! link @text.uri Underlined
hi! link @text.math Special
"hi! link @text.environment Macro
"hi! link @text.environment.name Type
"hi! link @text.reference Constant

hi! link @text.todo Todo
hi! link @text.note SpecialComment
hi! link @text.danger Error
"hi! link @text.warning WarningMsg

hi! link @tag Tag
"hi! link @tag.attribute Identifier
hi! link @tag.delimiter Delimiter
endif

" }}}
Expand Down