diff options
Diffstat (limited to 'vim/.vim/config/syntastic.vim')
-rw-r--r-- | vim/.vim/config/syntastic.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vim/.vim/config/syntastic.vim b/vim/.vim/config/syntastic.vim new file mode 100644 index 0000000..04babc7 --- /dev/null +++ b/vim/.vim/config/syntastic.vim | |||
@@ -0,0 +1,35 @@ | |||
1 | if has('nvim') | ||
2 | autocmd BufReadPost * Neomake | ||
3 | autocmd BufWritePost * Neomake | ||
4 | map <leader>sc :Neomake!<CR> | ||
5 | let g:neomake_python_enabled_makers = ['flake8'] | ||
6 | |||
7 | else | ||
8 | set statusline+=%#warningmsg# | ||
9 | set statusline+=%{SyntasticStatuslineFlag()} | ||
10 | set statusline+=%* | ||
11 | |||
12 | let g:syntastic_always_populate_loc_list = 1 | ||
13 | let g:syntastic_auto_loc_list = 1 | ||
14 | |||
15 | let g:syntastic_quiet_messages = {'level': 'warnings'} | ||
16 | let g:syntastic_check_on_open=1 | ||
17 | let g:syntastic_check_on_wq = 1 | ||
18 | let g:syntastic_enable_signs=1 | ||
19 | |||
20 | let g:syntastic_error_symbol='✗' | ||
21 | let g:syntastic_warning_symbol='⚠' | ||
22 | |||
23 | let g:syntastic_html_tidy_exec = 'tidy' | ||
24 | |||
25 | let g:syntastic_python_python_exec = '/usr/bin/python3' | ||
26 | let g:syntastic_mode_map = { 'mode': 'passive', | ||
27 | \ 'active_filetypes': ['python', 'javascript'], | ||
28 | \ 'passive_filetypes': ['scala', 'tex', 'java', 'go'] } | ||
29 | |||
30 | let g:syntastic_python_checkers = ['pep8'] | ||
31 | let g:syntastic_python_flake8_post_args = "--ignore=E501,E226,E225,E227" | ||
32 | let g:syntastic_c_compiler = 'clang' | ||
33 | |||
34 | map <leader>sc :SyntasticCheck<CR> | ||
35 | endif | ||