vimrc(lsp): enable ruff w/ pylsp
This commit is contained in:
parent
08e2e79ee6
commit
903b40e104
@ -1178,7 +1178,8 @@ if executable('pylsp')
|
|||||||
autocmd!
|
autocmd!
|
||||||
autocmd User lsp_setup call lsp#register_server({
|
autocmd User lsp_setup call lsp#register_server({
|
||||||
\ 'name': 'pyls',
|
\ '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'],
|
\ 'allowlist': ['python'],
|
||||||
\ })
|
\ })
|
||||||
" \ 'cmd': {server_info->['pyls']},
|
" \ 'cmd': {server_info->['pyls']},
|
||||||
|
Loading…
Reference in New Issue
Block a user