Skip to content

Commit

Permalink
Partially revert a31310b for nvim<0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Jun 24, 2024
1 parent 65ef1ce commit ee0a0dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions doc/scrollview.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ colors.
`ScrollViewFolds` fold signs
Directory
`ScrollViewHover` scrollbar and signs on hover
CurSearch
CurSearch for nvim>=0.9.2
and WildMenu otherwise
`ScrollViewLatestChange` latestchange signs
SpecialKey
`ScrollViewLocList` loclist signs
Expand All @@ -688,7 +689,8 @@ colors.
`ScrollViewQuickFix` quickfix signs
Constant
`ScrollViewRestricted` |scrollview-restricted| scrollbar
CurSearch
CurSearch for nvim>=0.9.2
and MatchParen otherwise
`ScrollViewSearch` search signs
NonText
`ScrollViewSpell` spell signs
Expand Down
12 changes: 10 additions & 2 deletions plugin/scrollview.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,20 @@ for [s:key, s:fallback, s:sign] in s:diagnostics_highlight_data
execute 'highlight default link ' .. s:key .. ' ' .. s:highlight
endfor
highlight default link ScrollViewFolds Directory
highlight default link ScrollViewHover CurSearch
if has('nvim-0.9.2')
highlight default link ScrollViewHover CurSearch
else
highlight default link ScrollViewHover WildMenu
endif
highlight default link ScrollViewLatestChange SpecialKey
highlight default link ScrollViewLocList LineNr
highlight default link ScrollViewMarks Identifier
highlight default link ScrollViewQuickFix Constant
highlight default link ScrollViewRestricted CurSearch
if has('nvim-0.9.2')
highlight default link ScrollViewRestricted CurSearch
else
highlight default link ScrollViewRestricted MatchParen
endif
highlight default link ScrollViewSearch NonText
highlight default link ScrollViewSpell Statement
highlight default link ScrollViewTextWidth Question
Expand Down

1 comment on commit ee0a0dc

@dstein64
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CurSearch is cleared for nvim<0.9.2.

Please sign in to comment.