Not being able to customise Syntastic

30 views
Skip to first unread message

Misha Reyzlin

unread,
Mar 7, 2016, 6:06:59 AM3/7/16
to Janus - Vimius
Hi, I'm trying to use Janus and add custom settings for Syntastic.

If I place the following in either `~/.vimrc.before` or `~/.vimrc.after` the settings are not picked up:
set wildignore+=*/node_modules/*,*.so,*.swp,*.zi

" LINTER SETTINGS
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint_d')
let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
let g:syntastic_javascript_checkers=['eslint']

If I run `source ~/.vimrc.before` after Vim has init, the settings are picked up.

What am I doing wrong? 

Thanks! 
Reply all
Reply to author
Forward
0 new messages