Skip to content

Commit

Permalink
Highlight only individual refs in Gstatus
Browse files Browse the repository at this point in the history
Stop highlighting comma separators and arrows in the list of refs shown
in Gstatus.
  • Loading branch information
Gelio committed Apr 8, 2021
1 parent 443afda commit 5bfbdaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syntax/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ syn match fugitiveSymbolicRef /\.\@!\%(\.\.\@!\|[^[:space:][:cntrl:]\:.]\)\+\.\@
syn match fugitiveHash /^\x\{4,\}\S\@!/ contained containedin=@fugitiveSection nextgroup=fugitiveRefs skipwhite
syn match fugitiveHash /\S\@<!\x\{4,\}\S\@!/ contained
syn match fugitiveRefs '()' contained conceal
syn match fugitiveRefs /([^)]\+)/hs=s+1,he=e-1 contained
syn match fugitiveRefs /([^)]\+)/hs=s+1,he=e-1 contained contains=fugitiveRef
syn match fugitiveRef /\<[^[:space:][:cntrl:]]\+\>/ contained

syn region fugitiveHunk start=/^\%(@@\+ -\)\@=/ end=/^\%([A-Za-z?@]\|$\)\@=/ contains=@fugitiveDiff containedin=@fugitiveSection fold

Expand All @@ -53,7 +54,7 @@ hi def link fugitiveStagedModifier Typedef
hi def link fugitiveInstruction Type
hi def link fugitiveStop Function
hi def link fugitiveHash Identifier
hi def link fugitiveRefs Function
hi def link fugitiveRef Function
hi def link fugitiveSymbolicRef Function
hi def link fugitiveCount Number

Expand Down

0 comments on commit 5bfbdaa

Please sign in to comment.