From 97d95c2f7900bb1ded103726d077ad99cf84790b Mon Sep 17 00:00:00 2001 From: chemzqm Date: Sat, 1 Jun 2019 05:28:21 +0800 Subject: [PATCH] feat(plugin): link CocHighlightText to CursorColumn --- doc/coc.cnx | 2 +- doc/coc.txt | 2 +- plugin/coc.vim | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/coc.cnx b/doc/coc.cnx index 3d7c0d1605b..2c4b741668c 100644 --- a/doc/coc.cnx +++ b/doc/coc.cnx @@ -1066,7 +1066,7 @@ CocHintHighlight *CocHintHighlight* CocHighlightText *CocHighlightText* - 默认: `hi default CocHighlightText guibg=#111111 ctermbg=223` + 默认: `hi default link CursorColumn` Document highlight 特性使用的高亮。用于高亮显示全部当前缓冲区的相同 变量。 diff --git a/doc/coc.txt b/doc/coc.txt index ff00198ca67..3f0f865fb02 100644 --- a/doc/coc.txt +++ b/doc/coc.txt @@ -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. diff --git a/plugin/coc.vim b/plugin/coc.vim index 5cfaf635d4b..be7f3047717 100644 --- a/plugin/coc.vim +++ b/plugin/coc.vim @@ -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