summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-10-21 09:35:23 +0100
committerw0rp <devw0rp@gmail.com>2019-10-21 09:35:23 +0100
commit67d0ccc398ca7650bb2c774a94d098bee3049169 (patch)
tree362ea75343597196271ca823f460782b6e23bc8b /autoload
parentc06467438dff38b939fd81b32395296d01a59df6 (diff)
downloadale-67d0ccc398ca7650bb2c774a94d098bee3049169.zip
Fix #2835 - Bump up the sign group version check for NeoVim
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/sign.vim10
1 files changed, 6 insertions, 4 deletions
diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim
index 7430c7f2..db0e1ab6 100644
--- a/autoload/ale/sign.vim
+++ b/autoload/ale/sign.vim
@@ -23,6 +23,8 @@ let g:ale_sign_offset = get(g:, 'ale_sign_offset', 1000000)
let g:ale_sign_column_always = get(g:, 'ale_sign_column_always', 0)
let g:ale_sign_highlight_linenrs = get(g:, 'ale_sign_highlight_linenrs', 0)
+let s:supports_sign_groups = has('nvim-0.4.2') || (v:version >= 801 && has('patch614'))
+
if !hlexists('ALEErrorSign')
highlight link ALEErrorSign error
endif
@@ -149,7 +151,7 @@ function! ale#sign#GetSignName(sublist) abort
endfunction
function! s:PriorityCmd() abort
- if has('nvim-0.4.0') || (v:version >= 801 && has('patch614'))
+ if s:supports_sign_groups
return ' priority=' . g:ale_sign_priority . ' '
else
return ''
@@ -157,7 +159,7 @@ function! s:PriorityCmd() abort
endfunction
function! s:GroupCmd() abort
- if has('nvim-0.4.0') || (v:version >= 801 && has('patch614'))
+ if s:supports_sign_groups
return ' group=ale '
else
return ' '
@@ -175,7 +177,7 @@ function! ale#sign#ReadSigns(buffer) abort
endfunction
function! ale#sign#ParsePattern() abort
- if has('nvim-0.4.0') || (v:version >= 801 && has('patch614'))
+ if s:supports_sign_groups
" Matches output like :
" line=4 id=1 group=ale name=ALEErrorSign
" строка=1 id=1000001 группа=ale имя=ALEErrorSign
@@ -460,7 +462,7 @@ endfunction
" Remove all signs.
function! ale#sign#Clear() abort
- if has('nvim-0.4.0') || (v:version >= 801 && has('patch614'))
+ if s:supports_sign_groups
sign unplace group=ale *
else
sign unplace *