vimrc: don't load ruff-lsp when pylsp
This commit is contained in:
parent
503ba874b1
commit
08e2e79ee6
20
.vim/vimrc
20
.vim/vimrc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user