summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorBlahGeek <i@blahgeek.com>2019-09-01 21:03:54 +0800
committerw0rp <w0rp@users.noreply.github.com>2019-09-01 14:03:54 +0100
commit9f814a8ce9135e8c5f83ab4455f3310822a9d7b5 (patch)
tree1b239ae899ea0d31d5818cd89fa3011c91f69872 /autoload
parent67ee2b9586743db4a7224c4f42bbd494373b6a85 (diff)
downloadale-9f814a8ce9135e8c5f83ab4455f3310822a9d7b5.zip
Add g:ale_sign_highlight_linenr (#2678)
* add g:ale_sign_highlight_linenr * Fix tests. Change option default value * Rename ale_sign_highlight_linenr to ale_sign_highlight_linenrs * Default ale_sign_highlight_linenrs to 0
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/debugging.vim1
-rw-r--r--autoload/ale/sign.vim3
2 files changed, 3 insertions, 1 deletions
diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim
index 379c0d73..4e134f8c 100644
--- a/autoload/ale/debugging.vim
+++ b/autoload/ale/debugging.vim
@@ -50,6 +50,7 @@ let s:global_variable_list = [
\ 'ale_sign_style_error',
\ 'ale_sign_style_warning',
\ 'ale_sign_warning',
+\ 'ale_sign_highlight_linenrs',
\ 'ale_statusline_format',
\ 'ale_type_map',
\ 'ale_use_global_executables',
diff --git a/autoload/ale/sign.vim b/autoload/ale/sign.vim
index eb0dd1cd..829de118 100644
--- a/autoload/ale/sign.vim
+++ b/autoload/ale/sign.vim
@@ -20,6 +20,7 @@ let g:ale_sign_info = get(g:, 'ale_sign_info', g:ale_sign_warning)
let g:ale_sign_offset = get(g:, 'ale_sign_offset', 1000000)
" This flag can be set to 1 to keep sign gutter always open
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)
if !hlexists('ALEErrorSign')
highlight link ALEErrorSign error
@@ -82,7 +83,7 @@ execute 'sign define ALEInfoSign text=' . s:EscapeSignText(g:ale_sign_info)
\ . ' texthl=ALEInfoSign linehl=ALEInfoLine'
sign define ALEDummySign
-if has('nvim-0.3.2')
+if g:ale_sign_highlight_linenrs && has('nvim-0.3.2')
if !hlexists('ALEErrorSignLineNr')
highlight link ALEErrorSignLineNr CursorLineNr
endif