From 0da5d53a36ed0de0edfaca0c45cc56f91bc2d85e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20Gro=C3=9F?= Date: Tue, 11 Jul 2023 19:01:35 +0200 Subject: [PATCH] Enforce disabled autoHighlightDiags when aleSupport is set When someone enables Ale support, it semantically implies disabling automatic highlighting of diagnostics from this plugin. Thus we can simplify later checks by automatically disabling autoHighlightDiags. --- autoload/lsp/diag.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/lsp/diag.vim b/autoload/lsp/diag.vim index e6d74d8..480d1ec 100644 --- a/autoload/lsp/diag.vim +++ b/autoload/lsp/diag.vim @@ -107,6 +107,7 @@ export def InitOnce() # ALE plugin support if opt.lspOptions.aleSupport + opt.lspOptions.autoHighlightDiags = false autocmd_add([ { group: 'LspAleCmds', @@ -216,7 +217,7 @@ enddef # This inline signs, inline props, and virtual text diagnostics export def DiagsRefresh(bnr: number, all: bool = false) var lspOpts = opt.lspOptions - if !lspOpts.autoHighlightDiags || lspOpts.aleSupport + if !lspOpts.autoHighlightDiags return endif -- 2.48.1