From 5fa0ad657ed04c0610ba0f95238a045bc644f380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 30 Aug 2021 23:09:55 +0200 Subject: vim: tweak python development --- vim/ftplugin/python.vim | 5 +++-- vimrc | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index 81753d3..e50189d 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1,5 +1,6 @@ setlocal colorcolumn=120 setlocal textwidth=120 -let b:ale_linters = ['pylsp'] -let b:ale_fixers = ['isort', 'black', 'add_blank_lines_for_python_control_statements', 'remove_trailing_lines', 'trim_whitespace'] +let b:ale_linters = ['pylsp', 'pylint'] +let b:ale_fixers = ['isort', 'black', 'remove_trailing_lines', 'trim_whitespace'] +let g:ale_python_black_options = '-l 120' diff --git a/vimrc b/vimrc index be12874..1256990 100644 --- a/vimrc +++ b/vimrc @@ -43,6 +43,7 @@ Plugin 'chr4/nginx.vim' Plugin 'LnL7/vim-nix' Plugin 'gisphm/vim-gitignore' Plugin 'aliou/bats.vim' +Plugin 'Glench/Vim-Jinja2-Syntax' " Files navigation Plugin 'kien/ctrlp.vim' " Grammer -- cgit v1.2.3