aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-03-19 00:25:48 +0800
committerjdhao <jdhao@hotmail.com>2021-03-19 00:25:48 +0800
commitac0040a98256963468439f87a51cb6c6e8582ee6 (patch)
tree807ff923119b36f2056db5bde74b9ca053608080 /core
parent01059017c1713e59bc80fa249a528f7878e8e4b9 (diff)
update vim-lsp settings
Use pylint for linting instead of flake8, which is shitty in finding apparent errors in the code.
Diffstat (limited to 'core')
-rw-r--r--core/plugins.vim6
1 files 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},