Update user vimrc

This commit is contained in:
Thomas Kolb 2021-07-03 21:33:41 +02:00
parent 20c30f371b
commit d6fde157a4

View file

@ -5,22 +5,43 @@ map <F11> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
map <F10> :mksession! Session.vim \| wviminfo! viminfo<CR>
set modeline
" indentation setup
set noexpandtab
set listchars+=precedes:<,extends:>
set noswapfile
set switchbuf=usetab,newtab
" Language Server
let g:lsp_signs_enabled = 1 " enable signs
let g:lsp_diagnostics_echo_cursor = 1 " enable echo under cursor when in normal mode
"if executable('pyls')
" " pip install python-language-server
" au User lsp_setup call lsp#register_server({
" \ 'name': 'pyls',
" \ 'cmd': {server_info->['pyls']},
" \ 'whitelist': ['python'],
" \ })
"endif
" VIM Packs
if executable('clangd')
au User lsp_setup call lsp#register_server({
\ 'name': 'clangd',
\ 'cmd': {server_info->['clangd']},
\ 'whitelist': ['c', 'cpp'],
\ })
endif
if executable('rls')
au User lsp_setup call lsp#register_server({
\ 'name': 'rls',
\ 'cmd': {server_info->['rls']},
\ 'whitelist': ['rust'],
\ })
endif
if executable('pyls')
au User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'whitelist': ['python'],
\ })
endif
if executable('ghdl-ls')
au User lsp_setup call lsp#register_server({