2017-10-25 10:27:25 +08:00
|
|
|
scriptencoding utf-8
|
2017-10-25 10:40:37 +08:00
|
|
|
let g:ale_sign_error = get(g:, 'spacevim_error_symbol', '✖')
|
|
|
|
let g:ale_sign_warning = get(g:,'spacevim_warning_symbol', '➤')
|
2017-11-19 10:32:59 +08:00
|
|
|
let g:ale_sign_info = get(g:,'spacevim_info_symbol', '🛈')
|
2017-10-26 00:49:53 +08:00
|
|
|
let g:ale_echo_msg_format = get(g:, 'ale_echo_msg_format', '%severity%: %linter%: %s')
|
2018-12-23 12:25:14 +08:00
|
|
|
let g:ale_lint_on_save = get(g:, 'spacevim_lint_on_save', 1)
|
2017-10-25 10:40:37 +08:00
|
|
|
|
2022-04-03 22:28:30 +08:00
|
|
|
if get(g:, 'spacevim_colorscheme', '') ==# 'gruvbox'
|
2017-10-25 10:40:37 +08:00
|
|
|
highlight link ALEErrorSign GruvboxRedSign
|
|
|
|
highlight link ALEWarningSign GruvboxYellowSign
|
|
|
|
endif
|
|
|
|
|
2022-04-03 22:28:30 +08:00
|
|
|
if get(g:, 'spacevim_lint_on_the_fly', 0)
|
2017-10-25 10:40:37 +08:00
|
|
|
let g:ale_lint_on_text_changed = 'always'
|
|
|
|
let g:ale_lint_delay = 750
|
|
|
|
else
|
|
|
|
let g:ale_lint_on_text_changed = 'never'
|
|
|
|
endif
|