diff options
| author | jdhao <jdhao@hotmail.com> | 2020-11-05 00:14:14 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-11-05 00:14:14 +0800 |
| commit | 3e10e4ac811f4249c71c44267050a9eb3efa73fd (patch) | |
| tree | 270864bd46fb842803e51a0f95077710476d33c1 /core/plugins.vim | |
| parent | 74e9290cb04aa906f99806861a57513ea67a5f25 (diff) | |
The correct setting for flake8 in pyls
Diffstat (limited to 'core/plugins.vim')
| -rw-r--r-- | core/plugins.vim | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index 15b4da1..f999a19 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -364,10 +364,18 @@ let g:lsp_preview_max_width = 80 if executable('pyls') " pip install python-language-server au User lsp_setup call lsp#register_server({ - \ 'name': 'pyls', - \ 'cmd': {server_info->['pyls']}, - \ 'allowlist': ['python'], - \ }) + \ 'name': 'pyls', + \ 'cmd': {server_info->['pyls']}, + \ 'allowlist': ['python'], + \ 'workspace_config': { + \ 'pyls': + \ {'configurationSources': ['flake8'], + \ 'plugins': {'flake8': {'enabled': v:true}, + \ 'pyflakes': {'enabled': v:false}, + \ 'pycodestyle': {'enabled': v:false}, + \ } + \ } + \ }}) endif if executable('vim-language-server') @@ -612,7 +620,6 @@ nmap P <Plug>(miniyank-autoPut) """""""""""""""""""""""""""""" ale settings """"""""""""""""""""""" " linters for different filetypes let g:ale_linters = { - \ 'python': ['pylint'], \ 'vim': ['vint'], \ 'cpp': ['clang'], \ 'c': ['clang'] |
