[nvim] Add python linting, suggestions to vim

Uses python-black, python-pylint, and python-jedi to enable
functionality.
This commit is contained in:
Marty Oehme 2020-07-10 10:12:16 +02:00
parent 3884d28dbd
commit a505976485
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
3 changed files with 19 additions and 10 deletions

View file

@ -84,11 +84,13 @@ playerctl
polybar
psmisc
pulsemixer
python-black
python-jedi
python-pdfminer.six
python-pipx
python-pybtex
python-pylint
python-pynvim
python-ueberzug
qutebrowser
redshift
ripgrep-all
@ -125,6 +127,7 @@ ttf-brill
ttf-comic-neue
ttf-heuristica
ttf-signika
ueberzug
unclutter
unrar
usbutils

View file

@ -54,6 +54,7 @@ Plug 'junegunn/fzf.vim'
" ultimately the only thing left here should be a
Plug 'Shougo/deoplete.nvim' " automatic suggestions, can also perhaps be changed for newer plugs
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'Shougo/echodoc.vim', {}
Plug 'desmap/ale-sensible' | Plug 'w0rp/ale' " asynchronous linting - might be superseded by lsp or coc.nvim at some point
" statusline

View file

@ -1,26 +1,31 @@
" PLUGIN: ALE
" PLUGIN: ALE
:scriptencoding utf-8
" clearer Error and warning signs for the gutter
let g:ale_sign_error = ''
let g:ale_sign_warning = ''
let g:ale_fix_on_save = 1
let g:ale_fixers = {
\'javascipt': ['eslint', 'prettier'],
\'html': ['tidy','prettier'],
\'typescript': ['prettier','tslint'],
\'*': ['remove_trailing_lines', 'trim_whitespace'],
\'go': ['gofmt'],
\'sh': ['shfmt'],
\'zsh': ['shfmt'],
\ 'javascript': ['prettier'],
\ 'html': ['prettier'],
\ 'typescript': ['prettier','tslint'],
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'go': ['gofmt'],
\ 'sh': ['shfmt'],
\ 'zsh': ['shfmt'],
\ 'python': ['black', 'isort'],
\}
let g:ale_linters = {
\ 'go': ['gopls'],
\ 'sh': ['language_server','shellcheck'],
\ 'zsh': ['language_server','shellcheck'],
\ 'html': ['prettier'],
\ 'python': ['pylint'],
\}
let g:ale_javascript_prettier_use_local_config = 1
" Enable integration with airline.
if exists("g:airline_theme")
if exists('g:airline_theme')
let g:airline#extensions#ale#enabled = 1
endif