mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update vim-lsp settings
Use pylint for linting instead of flake8, which is shitty in finding apparent errors in the code.
This commit is contained in:
parent
01059017c1
commit
ac0040a982
@ -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},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user