From 68e2401837b5ec1b20984d2e08ab79b023cf7167 Mon Sep 17 00:00:00 2001 From: Iron_E Date: Tue, 23 Jun 2020 23:16:17 -0400 Subject: [PATCH] Make logic less complicated --- lua/highlite/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}