[nvim] Add python linting, suggestions to vim
Uses python-black, python-pylint, and python-jedi to enable functionality.
This commit is contained in:
parent
3884d28dbd
commit
a505976485
3 changed files with 19 additions and 10 deletions
|
@ -84,11 +84,13 @@ playerctl
|
||||||
polybar
|
polybar
|
||||||
psmisc
|
psmisc
|
||||||
pulsemixer
|
pulsemixer
|
||||||
|
python-black
|
||||||
|
python-jedi
|
||||||
python-pdfminer.six
|
python-pdfminer.six
|
||||||
python-pipx
|
python-pipx
|
||||||
python-pybtex
|
python-pybtex
|
||||||
|
python-pylint
|
||||||
python-pynvim
|
python-pynvim
|
||||||
python-ueberzug
|
|
||||||
qutebrowser
|
qutebrowser
|
||||||
redshift
|
redshift
|
||||||
ripgrep-all
|
ripgrep-all
|
||||||
|
@ -125,6 +127,7 @@ ttf-brill
|
||||||
ttf-comic-neue
|
ttf-comic-neue
|
||||||
ttf-heuristica
|
ttf-heuristica
|
||||||
ttf-signika
|
ttf-signika
|
||||||
|
ueberzug
|
||||||
unclutter
|
unclutter
|
||||||
unrar
|
unrar
|
||||||
usbutils
|
usbutils
|
||||||
|
|
|
@ -54,6 +54,7 @@ Plug 'junegunn/fzf.vim'
|
||||||
" ultimately the only thing left here should be a
|
" ultimately the only thing left here should be a
|
||||||
Plug 'Shougo/deoplete.nvim' " automatic suggestions, can also perhaps be changed for newer plugs
|
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-go', { 'do': 'make'}
|
||||||
|
Plug 'deoplete-plugins/deoplete-jedi'
|
||||||
Plug 'Shougo/echodoc.vim', {}
|
Plug 'Shougo/echodoc.vim', {}
|
||||||
Plug 'desmap/ale-sensible' | Plug 'w0rp/ale' " asynchronous linting - might be superseded by lsp or coc.nvim at some point
|
Plug 'desmap/ale-sensible' | Plug 'w0rp/ale' " asynchronous linting - might be superseded by lsp or coc.nvim at some point
|
||||||
" statusline
|
" statusline
|
||||||
|
|
|
@ -1,26 +1,31 @@
|
||||||
" PLUGIN: ALE
|
" PLUGIN: ALE
|
||||||
|
:scriptencoding utf-8
|
||||||
" clearer Error and warning signs for the gutter
|
" clearer Error and warning signs for the gutter
|
||||||
let g:ale_sign_error = ''
|
let g:ale_sign_error = ''
|
||||||
let g:ale_sign_warning = ''
|
let g:ale_sign_warning = ''
|
||||||
|
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save = 1
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\'javascipt': ['eslint', 'prettier'],
|
\ 'javascript': ['prettier'],
|
||||||
\'html': ['tidy','prettier'],
|
\ 'html': ['prettier'],
|
||||||
\'typescript': ['prettier','tslint'],
|
\ 'typescript': ['prettier','tslint'],
|
||||||
\'*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\'go': ['gofmt'],
|
\ 'go': ['gofmt'],
|
||||||
\'sh': ['shfmt'],
|
\ 'sh': ['shfmt'],
|
||||||
\'zsh': ['shfmt'],
|
\ 'zsh': ['shfmt'],
|
||||||
|
\ 'python': ['black', 'isort'],
|
||||||
\}
|
\}
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'go': ['gopls'],
|
\ 'go': ['gopls'],
|
||||||
\ 'sh': ['language_server','shellcheck'],
|
\ 'sh': ['language_server','shellcheck'],
|
||||||
\ 'zsh': ['language_server','shellcheck'],
|
\ 'zsh': ['language_server','shellcheck'],
|
||||||
|
\ 'html': ['prettier'],
|
||||||
|
\ 'python': ['pylint'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
let g:ale_javascript_prettier_use_local_config = 1
|
||||||
|
|
||||||
" Enable integration with airline.
|
" Enable integration with airline.
|
||||||
if exists("g:airline_theme")
|
if exists('g:airline_theme')
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue