summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Mesquita <rodrigo.m.mesquita@gmail.com>2023-08-05 18:10:03 +0100
committerGitHub <noreply@github.com>2023-08-05 18:10:03 +0100
commit15cbc0e912acf31d8185dbef00473e9555591350 (patch)
tree91d40b432728d3293dfdb6eeabd26dd0f6ff2fc1
parentaf42e0b510365bb137567336386262565150f26b (diff)
downloadale-15cbc0e912acf31d8185dbef00473e9555591350.zip
Close #4579 - Support numhl highlights for vim >= 8.2.3874
In #2637, support for numhl highlights was added for nvim. In the meantime, vim added support for numhl highlights in patch 8.2.3874. This patch allows numhl highlights to be enabled in ALE for vim >= 8.2.3874 too.
-rw-r--r--autoload/ale/sign.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim
index 21e06313..e043216f 100644
--- a/autoload/ale/sign.vim
+++ b/autoload/ale/sign.vim
@@ -87,7 +87,7 @@ execute 'sign define ALEInfoSign text=' . s:EscapeSignText(g:ale_sign_info)
\ . ' texthl=ALEInfoSign linehl=ALEInfoLine'
sign define ALEDummySign text=\ texthl=SignColumn
-if g:ale_sign_highlight_linenrs && has('nvim-0.3.2')
+if g:ale_sign_highlight_linenrs && (has('nvim-0.3.2') || has('patch-8.2.3874'))
if !hlexists('ALEErrorSignLineNr')
highlight link ALEErrorSignLineNr CursorLineNr
endif