vimrc: don't load ruff-lsp when pylsp

This commit is contained in:
t14 2024-07-06 12:16:31 +02:00
parent 503ba874b1
commit 08e2e79ee6
Signed by: wanderer
SSH Key Fingerprint: SHA256:szgNfbjbimyesAS1xfRZ0DY3hcNv9xC9ocRCJjD4Wgg

@ -1106,16 +1106,6 @@ if executable('gopls')
\ }) \ })
augroup END augroup END
endif endif
if executable('ruff-lsp')
augroup lsp_ruff
autocmd!
au User lsp_setup call lsp#register_server({
\ 'name': 'ruff-lsp',
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'ruff-lsp']},
\ 'allowlist': ['python'],
\ })
augroup END
endif
if executable('nil') if executable('nil')
augroup lsp_nil augroup lsp_nil
autocmd! autocmd!
@ -1194,6 +1184,16 @@ if executable('pylsp')
" \ 'cmd': {server_info->['pyls']}, " \ 'cmd': {server_info->['pyls']},
augroup END augroup END
endif endif
"if executable('ruff-lsp')
" augroup lsp_ruff
" autocmd!
" au User lsp_setup call lsp#register_server({
" \ 'name': 'ruff-lsp',
" \ 'cmd': {server_info->[&shell, &shellcmdflag, 'ruff-lsp']},
" \ 'allowlist': ['python'],
" \ })
" augroup END
"endif
if executable('omnisharp') if executable('omnisharp')
" https://www.rockyourcode.com/use-vim-for-c-sharp-development-on-linux/ " https://www.rockyourcode.com/use-vim-for-c-sharp-development-on-linux/
augroup lsp_omnisharp augroup lsp_omnisharp