[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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue