neoclide / coc-highlight

Document highlight and document colors LSP support for coc.nvim
221 stars 12 forks source link

[bug] color highlight will disappear after colorscheme #36

Open Freed-Wu opened 3 years ago

Freed-Wu commented 3 years ago

Reproduce Procedures

" File: $XDG_CONFIG_HOME/nvim/test.vim
" OS: linux v5.4.13
" Vi: nvim v0.4.3
" Py: cpython v3.6.10
" Term: guake v3.7.0
set runtimepath=$VIMRUNTIME,$GITHUBWORKSPACE/neoclide/coc.nvim
set termguicolors
" vi -u $XDG_CONFIG_HOME/nvim/test.vim

ired<Esc>

the word red will become red.

:colorscheme default<CR>

the word red will lose its color.

chemzqm commented 3 years ago

Will improve it.

g6ai commented 3 years ago

@chemzqm Is there any command to force re-enable the highlighting for such case? So I can write it into a vimscript function as a workaround. Thanks!

chemzqm commented 3 years ago

Not yet.

Freed-Wu commented 1 year ago

This bug is similar with https://github.com/vim-utils/vim-troll-stopper/pull/12. Does there exist any highlight default link miss default?

chemzqm commented 1 year ago

It's expected, since the colorshceme command clears all dynamtic highlight groups.