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 Mar 25, 2021
1 parent 368ea85 commit 4aaf929
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 4aaf929

Please sign in to comment.