summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-09-01 14:56:04 -0400
committerJesse Luehrs <doy@tozt.net>2022-09-01 14:56:04 -0400
commit2cc2364562b38fc76fd6db9443a0ce7c73895f09 (patch)
tree2835b792dfe35b4db4b7f5ee4869089127b41e7f
parentd5cca214e586f6d91080340a607ad94e3f241c7c (diff)
downloadconf-2cc2364562b38fc76fd6db9443a0ce7c73895f09.tar.gz
conf-2cc2364562b38fc76fd6db9443a0ce7c73895f09.zip
tweak vim python config
-rw-r--r--vim/ftplugin/python.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim
index d943848..31b419c 100644
--- a/vim/ftplugin/python.vim
+++ b/vim/ftplugin/python.vim
@@ -12,4 +12,8 @@ endfunction
nnoremap <buffer> <silent>K :call Help(0, ['.'], '<SID>pydoc')<CR>
vnoremap <buffer> <silent>K :call Help(1, ['.'], '<SID>pydoc')<CR>
-let b:ale_python_pylint_options = '--disable=missing-module-docstring,missing-function-docstring,too-many-locals,too-many-branches'
+map <buffer> <CR> :ALEGoToDefinition<CR>
+
+let b:ale_fixers = { 'python': ['black', 'isort'] }
+let b:ale_fix_on_save = 1
+let b_ale_python_flake8_options = '--max-line-length 1000' \ No newline at end of file