prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.1k stars 304 forks source link

Сhanging the color scheme completely breaks the highlighting #1475

Open bogdan-nikitin opened 1 year ago

bogdan-nikitin commented 1 year ago

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.

stale[bot] commented 11 months ago

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.

ShayHill commented 5 months ago

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