From ac0040a98256963468439f87a51cb6c6e8582ee6 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 19 Mar 2021 00:25:48 +0800 Subject: [PATCH] update vim-lsp settings Use pylint for linting instead of flake8, which is shitty in finding apparent errors in the code. --- core/plugins.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index 7bdd413..b8b1427 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -374,6 +374,7 @@ let g:lsp_diagnostics_enabled = 1 let g:lsp_diagnostics_signs_enabled = 1 let g:lsp_diagnostics_signs_error = {'text': '✗'} let g:lsp_diagnostics_signs_warning = {'text': '!'} +let g:lsp_diagnostics_signs_information = {'text': '!'} let g:lsp_diagnostics_highlights_enabled = 0 " Do not use virtual text, they are far too obstrusive. @@ -398,8 +399,9 @@ if executable('pyls') \ 'allowlist': ['python'], \ 'workspace_config': { \ 'pyls': - \ {'configurationSources': ['flake8'], - \ 'plugins': {'flake8': {'enabled': v:true}, + \ { + \ 'plugins': {'flake8': {'enabled': v:false}, + \ 'pylint': {'enabled': v:true, 'executable': 'pylint'}, \ 'pyflakes': {'enabled': v:false}, \ 'pycodestyle': {'enabled': v:false}, \ 'jedi_completion': {'fuzzy': v:true},