vimrc(lsp): enable ruff w/ pylsp

This commit is contained in:
t14 2024-07-07 11:13:09 +02:00
parent 08e2e79ee6
commit 903b40e104
Signed by: wanderer
SSH Key Fingerprint: SHA256:szgNfbjbimyesAS1xfRZ0DY3hcNv9xC9ocRCJjD4Wgg

@ -1178,7 +1178,8 @@ if executable('pylsp')
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'pylsp']},
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'pylsp', '-vvv', '--log-file', '/tmp/pyls.log']},
\ 'settings': {'pylsp': {'plugins': {'ruff': {'enabled': 'true', 'formatEnabled': 'true',}}}},
\ 'allowlist': ['python'],
\ })
" \ 'cmd': {server_info->['pyls']},