mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:10:05 +08:00
33 lines
1.4 KiB
VimL
33 lines
1.4 KiB
VimL
scriptencoding utf-8
|
|
|
|
let s:lint_option = SpaceVim#layers#checkers#get_lint_option()
|
|
let s:neomake_automake_events = {}
|
|
if s:lint_option.lint_on_the_fly
|
|
let s:neomake_automake_events['TextChanged'] = {'delay': 750}
|
|
let s:neomake_automake_events['TextChangedI'] = {'delay': 750}
|
|
endif
|
|
if s:lint_option.lint_on_save
|
|
let s:neomake_automake_events['BufWritePost'] = {'delay': 0}
|
|
endif
|
|
if !empty(s:neomake_automake_events)
|
|
try
|
|
call neomake#configure#automake(s:neomake_automake_events)
|
|
catch /^Vim\%((\a\+)\)\=:E117/
|
|
endtry
|
|
endif
|
|
let g:neomake_verbose = get(g:, 'neomake_verbose', 0)
|
|
let g:neomake_java_javac_delete_output = get(g:, 'neomake_java_javac_delete_output', 0)
|
|
let g:neomake_error_sign = get(g:, 'neomake_error_sign', {
|
|
\ 'text': get(g:, 'spacevim_error_symbol', '✖'),
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxRedSign' : 'error'),
|
|
\ })
|
|
let g:neomake_warning_sign = get(g:, 'neomake_warning_sign', {
|
|
\ 'text': get(g:,'spacevim_warning_symbol', '➤'),
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
|
\ })
|
|
let g:neomake_info_sign = get(g:, 'neomake_info_sign', {
|
|
\ 'text': get(g:,'spacevim_info_symbol', '🛈'),
|
|
\ 'texthl': (get(g:, 'spacevim_colorscheme', 'gruvbox') ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
|
|
\ })
|
|
" vim:set et sw=2:
|