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

Сhanging the color scheme completely breaks the highlighting

Open bogdan-nikitin opened this issue 1 year ago • 2 comments

Executing :colorscheme <scheme> or :hi clear breaks the highlighting. Reloading .vimrc or reloading the plugin doesn't help, and the only way to bring highlighting back is to restart Vim.

bogdan-nikitin avatar May 23 '23 17:05 bogdan-nikitin

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 17 '23 03:09 stale[bot]

If by "breaks the highlighting" you mean removing the error and warning highlights, these can be restored with

def g:RestoreLspHighlights(): void
    highlight link LspErrorHighlight Error
    highlight link LspWarningHighlight Todo
    highlight link LspInformationHighlight Normal
    highlight link LspHintHighlight Normal
enddef

ShayHill avatar Apr 02 '24 00:04 ShayHill