diff --git a/lua/highlite/init.lua b/lua/highlite/init.lua index 5624b2e..fbdaa77 100644 --- a/lua/highlite/init.lua +++ b/lua/highlite/init.lua @@ -527,7 +527,7 @@ local highlights = { NERDTreeLinkTarget = {link='Tag' }, } -if vim.api.nvim_call_function('has', {'nvim-0.5'}) then +if vim.lsp then highlights.LspDiagnosticsError = {link='CocErrorHighlight'} highlights.LspDiagnosticsErrorFloating = {link='ErrorMsg'} highlights.LspDiagnosticsErrorSign = {link='CocErrorSign'}