mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 03:35:10 +01:00
20190211: document the Python/Django ftype recognition
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
" Taken from http://code.lardcave.net/2018/09/09/1/ Thanks!
|
||||||
|
" Fixed for Python3's importlib
|
||||||
python3 <<EOF
|
python3 <<EOF
|
||||||
import vim
|
import vim
|
||||||
from importlib.util import find_spec
|
from importlib.util import find_spec
|
||||||
|
|||||||
7
.vimrc
7
.vimrc
@@ -322,9 +322,10 @@ let g:ale_maximum_file_size = 500000 " Don't lint large files (> 500KB), it can
|
|||||||
let g:ale_fixers = {}
|
let g:ale_fixers = {}
|
||||||
" Python specific settings
|
" Python specific settings
|
||||||
let g:ale_fixers.python = ['isort']
|
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"
|
" See VIMHOME/after/ftplugin/python.vim for some pylint configuration, also checking whether a
|
||||||
" VIMHOME/after/ftplugin/python.vim takes care of this
|
" project uses Django
|
||||||
|
|
||||||
" Show errors or warnings in the statusline
|
" Show errors or warnings in the statusline
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
" UI
|
" UI
|
||||||
|
|||||||
Reference in New Issue
Block a user