summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorKabbaj Amine <amine.kabb@gmail.com>2016-10-02 11:22:24 +0300
committerKabbaj Amine <amine.kabb@gmail.com>2016-10-02 11:22:24 +0300
commit81bccb28479ddd91b543ac1341066cbae314951c (patch)
tree30eca05f31fe9ef54ce709392a1e9d6792d0eb2f /plugin
parentabd1249e74e6186a14d07d28db69bca4994674b9 (diff)
downloadale-81bccb28479ddd91b543ac1341066cbae314951c.zip
Add an option for defining text of signs
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale/sign.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim
index 6f07703d..46d74fc6 100644
--- a/plugin/ale/sign.vim
+++ b/plugin/ale/sign.vim
@@ -20,9 +20,15 @@ if !hlexists('ALEWarning')
highlight link ALEWarning SpellCap
endif
+" Global variables for signs
+let g:ale_sign_error = get(g:, 'ale_sign_error', '>>')
+let g:ale_sign_warning = get(g:, 'ale_sign_error', '--')
+
" Signs show up on the left for error markers.
-sign define ALEErrorSign text=>> texthl=ALEErrorSign
-sign define ALEWarningSign text=-- texthl=ALEWarningSign
+execute 'sign define ALEErrorSign text=' . g:ale_sign_error
+ \ . ' texthl=ALEErrorSign'
+execute 'sign define ALEWarningSign text=' . g:ale_sign_warning
+ \ . ' texthl=ALEWarningSign'
" This function will set the signs which show up on the left.
function! ale#sign#SetSigns(buffer, loclist)