vimrc: add augroup for pyls
This commit is contained in:
parent
a85ccd7318
commit
a2c0d7247c
13
.vim/vimrc
13
.vim/vimrc
@ -734,11 +734,14 @@ if executable('zls')
|
|||||||
endif
|
endif
|
||||||
if executable('pyls')
|
if executable('pyls')
|
||||||
" pip install python-language-server
|
" pip install python-language-server
|
||||||
au User lsp_setup call lsp#register_server({
|
augroup lsp_py
|
||||||
\ 'name': 'pyls',
|
autocmd!
|
||||||
\ 'cmd': {server_info->['pyls']},
|
autocmd User lsp_setup call lsp#register_server({
|
||||||
\ 'allowlist': ['python'],
|
\ 'name': 'pyls',
|
||||||
\ })
|
\ 'cmd': {server_info->['pyls']},
|
||||||
|
\ 'allowlist': ['python'],
|
||||||
|
\ })
|
||||||
|
augroup END
|
||||||
endif
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user