summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-07-21 16:16:31 +0200
committerAhmed Abdelhalim <[email protected]>2021-07-21 16:16:31 +0200
commitbb2ada030401a37253e578c32fdd1e6762df36e5 (patch)
tree2e5ae7198e8c3e553535ff8bd2874194af7bfc21 /.vimrc
parentef347bd37ddcb4a80f9f6b1157cc90fee4d64709 (diff)
Add flake8 configurations with YCM
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index e5e638c..3a2f186 100644
--- a/.vimrc
+++ b/.vimrc
@@ -158,8 +158,8 @@ let &colorcolumn="80,".join(range(121,130),",")
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugin maps
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"YouCompleteMe
-"=============
+"YouCompleteMe & vim-flake8
+"==========================
let g:ycm_auto_hover=''
let g:ycm_enable_diagnostic_signs = 1
let g:ycm_autoclose_preview_window_after_completion = 1
@@ -169,6 +169,7 @@ let pipenv_venv_path = system('pipenv --venv')
if shell_error == 0
let venv_path = substitute(pipenv_venv_path, '\n', '', '')
let g:ycm_python_binary_path = venv_path . '/bin/python'
+ let g:flake8_cmd = venv_path . '/bin/flake8'
else
let g:ycm_python_binary_path = '/usr/local/bin/python3'
endif