vim-lsp icon indicating copy to clipboard operation
vim-lsp copied to clipboard

[Bug Report?] Highlights were cleared

Open 4513ECHO opened this issue 2 years ago • 3 comments

When I changed colorscheme, highlights for virtual text and diagnostic were cleared.

Please use ColorScheme autocmd and highlight default link command instead of hlexists().

as is

if !hlexists('LspErrorHighlight')
    highlight link LspErrorHighlight Error
endif

to be

augroup lsp-highlight
  autocmd!
  autocmd ColorScheme * highlight default link LspErrorHighlight Error
augroup END
highlight default link LspErrorHighlight Error

4513ECHO avatar Apr 15 '22 11:04 4513ECHO

By this problem, highlights are cleared if use with colorschemes which does not support vim-lsp. Many colorschemes does not have support for vim-lsp, so it is serious problem.

4513ECHO avatar Apr 18 '22 10:04 4513ECHO

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 19 '22 06:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 00:09 stale[bot]