mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
The correct setting for flake8 in pyls
This commit is contained in:
parent
74e9290cb0
commit
3e10e4ac81
@ -367,7 +367,15 @@ if executable('pyls')
|
|||||||
\ 'name': 'pyls',
|
\ 'name': 'pyls',
|
||||||
\ 'cmd': {server_info->['pyls']},
|
\ 'cmd': {server_info->['pyls']},
|
||||||
\ 'allowlist': ['python'],
|
\ 'allowlist': ['python'],
|
||||||
\ })
|
\ 'workspace_config': {
|
||||||
|
\ 'pyls':
|
||||||
|
\ {'configurationSources': ['flake8'],
|
||||||
|
\ 'plugins': {'flake8': {'enabled': v:true},
|
||||||
|
\ 'pyflakes': {'enabled': v:false},
|
||||||
|
\ 'pycodestyle': {'enabled': v:false},
|
||||||
|
\ }
|
||||||
|
\ }
|
||||||
|
\ }})
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if executable('vim-language-server')
|
if executable('vim-language-server')
|
||||||
@ -612,7 +620,6 @@ nmap P <Plug>(miniyank-autoPut)
|
|||||||
"""""""""""""""""""""""""""""" ale settings """""""""""""""""""""""
|
"""""""""""""""""""""""""""""" ale settings """""""""""""""""""""""
|
||||||
" linters for different filetypes
|
" linters for different filetypes
|
||||||
let g:ale_linters = {
|
let g:ale_linters = {
|
||||||
\ 'python': ['pylint'],
|
|
||||||
\ 'vim': ['vint'],
|
\ 'vim': ['vint'],
|
||||||
\ 'cpp': ['clang'],
|
\ 'cpp': ['clang'],
|
||||||
\ 'c': ['clang']
|
\ 'c': ['clang']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user