aboutsummaryrefslogtreecommitdiff
blob: 04babc79fafc1ae3dfc6cd6638eeec266917fa70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
if has('nvim')
    autocmd BufReadPost * Neomake
	autocmd BufWritePost * Neomake
	map <leader>sc :Neomake!<CR>
	let g:neomake_python_enabled_makers = ['flake8']

else
	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_quiet_messages = {'level': 'warnings'}
	let g:syntastic_check_on_open=1
    let g:syntastic_check_on_wq = 1
	let g:syntastic_enable_signs=1

	let g:syntastic_error_symbol='✗'
	let g:syntastic_warning_symbol='⚠'

	let g:syntastic_html_tidy_exec = 'tidy'

	let g:syntastic_python_python_exec = '/usr/bin/python3'
    let g:syntastic_mode_map = { 'mode': 'passive',
							   \ 'active_filetypes': ['python', 'javascript'],
							   \ 'passive_filetypes': ['scala', 'tex', 'java', 'go'] }

	let g:syntastic_python_checkers = ['pep8']
	let g:syntastic_python_flake8_post_args = "--ignore=E501,E226,E225,E227"
	let g:syntastic_c_compiler = 'clang'

	map <leader>sc :SyntasticCheck<CR>
endif
Powered by cgit v1.2.3 (git 2.41.0)