From 08e2e79ee68ff41782a25280ab6156bfbc39a1fa Mon Sep 17 00:00:00 2001 From: t14 Date: Sat, 6 Jul 2024 12:16:31 +0200 Subject: [PATCH] vimrc: don't load ruff-lsp when pylsp --- .vim/vimrc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index c28302c..2523600 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1106,16 +1106,6 @@ if executable('gopls') \ }) augroup END 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') augroup lsp_nil autocmd! @@ -1194,6 +1184,16 @@ if executable('pylsp') " \ 'cmd': {server_info->['pyls']}, augroup END 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') " https://www.rockyourcode.com/use-vim-for-c-sharp-development-on-linux/ augroup lsp_omnisharp