1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +01:00

20190211: document the Python/Django ftype recognition

This commit is contained in:
2019-02-22 09:16:00 +01:00
parent a7eb6c3fc8
commit f0d8cc2d40
2 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
" Taken from http://code.lardcave.net/2018/09/09/1/ Thanks!
" Fixed for Python3's importlib
python3 <<EOF
import vim
from importlib.util import find_spec

7
.vimrc
View File

@@ -322,9 +322,10 @@ let g:ale_maximum_file_size = 500000 " Don't lint large files (> 500KB), it can
let g:ale_fixers = {}
" Python specific settings
let g:ale_fixers.python = ['isort']
" No silly 80-char line limit. Sorry pep-8. Also, Django support. Disable 'invalid name', 'missing docstring'
"let g:ale_python_pylint_options="--max-line-length=120 --disable=invalid-name,missing-docstring"
" VIMHOME/after/ftplugin/python.vim takes care of this
" See VIMHOME/after/ftplugin/python.vim for some pylint configuration, also checking whether a
" project uses Django
" Show errors or warnings in the statusline
let g:airline#extensions#ale#enabled = 1
" UI