vim-lsp
vim-lsp copied to clipboard
[Bug Report?] Highlights were cleared
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
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.
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.
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.