Update user vimrc
This commit is contained in:
parent
20c30f371b
commit
d6fde157a4
|
@ -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>
|
map <F10> :mksession! Session.vim \| wviminfo! viminfo<CR>
|
||||||
|
|
||||||
set modeline
|
set modeline
|
||||||
|
|
||||||
|
" indentation setup
|
||||||
set noexpandtab
|
set noexpandtab
|
||||||
set listchars+=precedes:<,extends:>
|
set listchars+=precedes:<,extends:>
|
||||||
|
set noswapfile
|
||||||
|
|
||||||
|
set switchbuf=usetab,newtab
|
||||||
|
|
||||||
" Language Server
|
" Language Server
|
||||||
|
|
||||||
let g:lsp_signs_enabled = 1 " enable signs
|
let g:lsp_signs_enabled = 1 " enable signs
|
||||||
let g:lsp_diagnostics_echo_cursor = 1 " enable echo under cursor when in normal mode
|
let g:lsp_diagnostics_echo_cursor = 1 " enable echo under cursor when in normal mode
|
||||||
|
|
||||||
"if executable('pyls')
|
" VIM Packs
|
||||||
" " pip install python-language-server
|
if executable('clangd')
|
||||||
" au User lsp_setup call lsp#register_server({
|
au User lsp_setup call lsp#register_server({
|
||||||
" \ 'name': 'pyls',
|
\ 'name': 'clangd',
|
||||||
" \ 'cmd': {server_info->['pyls']},
|
\ 'cmd': {server_info->['clangd']},
|
||||||
" \ 'whitelist': ['python'],
|
\ 'whitelist': ['c', 'cpp'],
|
||||||
" \ })
|
\ })
|
||||||
"endif
|
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')
|
if executable('ghdl-ls')
|
||||||
au User lsp_setup call lsp#register_server({
|
au User lsp_setup call lsp#register_server({
|
||||||
|
|
Loading…
Reference in a new issue