Skip to content

Commit

Permalink
feat(plugin): link CocHighlightText to CursorColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed May 31, 2019
1 parent 4fee42c commit 97d95c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/coc.cnx
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ CocHintHighlight *CocHintHighlight*

CocHighlightText *CocHighlightText*

默认: `hi default CocHighlightText guibg=#111111 ctermbg=223`
默认: `hi default link CursorColumn`

Document highlight 特性使用的高亮。用于高亮显示全部当前缓冲区的相同
变量。
Expand Down
2 changes: 1 addition & 1 deletion doc/coc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ CocHintHighlight *CocHintHighlight*

CocHighlightText *CocHighlightText*

Default `hi default CocHighlightText guibg=#111111 ctermbg=223`
Default `hi default link CursorColumn`

The highlight used for document highlight feature. Normally used for
highlighting same symbols in the buffer at the current cursor position.
Expand Down
6 changes: 1 addition & 5 deletions plugin/coc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,8 @@ hi default link CocHintHighlight CocUnderline
hi default link CocListMode ModeMsg
hi default link CocListPath Comment
hi default link CocFloating Pmenu
hi default link CocHighlightText CursorColumn

if &background ==# 'dark'
hi default CocHighlightText guibg=#222222 ctermbg=233
else
hi default CocHighlightText guibg=#f9f9f9 ctermbg=15
endif
hi default link CocHighlightRead CocHighlightText
hi default link CocHighlightWrite CocHighlightText

Expand Down

0 comments on commit 97d95c2

Please sign in to comment.