aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-02-21 23:20:14 +0100
committerKarel Kočí <cynerd@email.cz>2018-02-21 23:20:14 +0100
commit761683de5943f2d74ea6417f099aa6dd4eb6a06f (patch)
treee620cbe9fcd5fb0d7e2d5e193f6ef9449160b3dd /vimrc
parente117f023373b8dc24a6ff994f53f1f183e08eb14 (diff)
downloadmyconfigs-761683de5943f2d74ea6417f099aa6dd4eb6a06f.tar.gz
myconfigs-761683de5943f2d74ea6417f099aa6dd4eb6a06f.tar.bz2
myconfigs-761683de5943f2d74ea6417f099aa6dd4eb6a06f.zip
vim: add ale fixers and change c linters
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 6580a9f..4c600ca 100644
--- a/vimrc
+++ b/vimrc
@@ -112,7 +112,11 @@ let g:UltiSnipsJumpBackwardTrigger="<c-k>"
" Ale
let g:ale_lint_on_text_changed = 'never'
-let g:ale_linters = {'c': ['cppcheck', 'gcc', 'clang']}
+let g:ale_linters = {'c': ['cppcheck', 'clangcheck']}
+let g:ale_fixers = {
+\ 'c': ['remove_trailing_lines', 'trim_whitespace'],
+\ 'python': ['autopep8', 'isort', 'add_blank_lines_for_python_control_statements', 'remove_trailing_lines', 'trim_whitespace'],
+\}
let g:ycm_path_to_python_interpreter="/usr/bin/python3"
let g:ycm_global_ycm_extra_conf = ".ycm_conf.py"