2016-12-26 21:11:19 +08:00
|
|
|
scriptencoding utf-8
|
2022-05-22 17:10:34 +08:00
|
|
|
|
|
|
|
let s:lint_option = SpaceVim#layers#checkers#get_lint_option()
|
2017-10-25 08:30:19 +08:00
|
|
|
let s:neomake_automake_events = {}
|
2022-05-22 17:10:34 +08:00
|
|
|
if s:lint_option.lint_on_the_fly
|
|
|
|
let s:neomake_automake_events['TextChanged'] = {'delay': 750}
|
|
|
|
let s:neomake_automake_events['TextChangedI'] = {'delay': 750}
|
2017-10-25 08:30:19 +08:00
|
|
|
endif
|
2022-05-22 17:10:34 +08:00
|
|
|
if s:lint_option.lint_on_save
|
|
|
|
let s:neomake_automake_events['BufWritePost'] = {'delay': 0}
|
2017-10-25 08:30:19 +08:00
|
|
|
endif
|
|
|
|
if !empty(s:neomake_automake_events)
|
2017-11-03 20:03:16 +08:00
|
|
|
try
|
2017-10-25 08:30:19 +08:00
|
|
|
call neomake#configure#automake(s:neomake_automake_events)
|
2017-11-03 20:03:16 +08:00
|
|
|
catch /^Vim\%((\a\+)\)\=:E117/
|
|
|
|
endtry
|
2017-10-25 08:30:19 +08:00
|
|
|
endif
|
2017-03-08 20:53:20 +08:00
|
|
|
let g:neomake_verbose = get(g:, 'neomake_verbose', 0)
|
|
|
|
let g:neomake_java_javac_delete_output = get(g:, 'neomake_java_javac_delete_output', 0)
|
2017-03-29 21:36:46 +08:00
|
|
|
let g:neomake_error_sign = get(g:, 'neomake_error_sign', {
|
2017-03-06 23:26:26 +08:00
|
|
|
\ 'text': get(g:, 'spacevim_error_symbol', '✖'),
|
2019-07-11 18:26:29 +08:00
|
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxRedSign' : 'error'),
|
2017-03-29 21:36:46 +08:00
|
|
|
\ })
|
|
|
|
let g:neomake_warning_sign = get(g:, 'neomake_warning_sign', {
|
2017-03-06 23:26:26 +08:00
|
|
|
\ 'text': get(g:,'spacevim_warning_symbol', '➤'),
|
2019-07-11 18:26:29 +08:00
|
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
2017-03-29 21:36:46 +08:00
|
|
|
\ })
|
2017-11-19 10:32:59 +08:00
|
|
|
let g:neomake_info_sign = get(g:, 'neomake_info_sign', {
|
|
|
|
\ 'text': get(g:,'spacevim_info_symbol', '🛈'),
|
2019-07-11 18:26:29 +08:00
|
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
2017-11-19 10:32:59 +08:00
|
|
|
\ })
|
2017-03-06 23:26:26 +08:00
|
|
|
" vim:set et sw=2:
|