vimrc: add ultisnips,vim-snippets+rm vim-clang

This commit is contained in:
surtur 2022-10-30 03:36:05 +01:00
parent 5e2c7d97d2
commit 4f376d5e1f
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -58,6 +58,8 @@ Plug 'junegunn/goyo.vim', { 'for': 'markdown' }
Plug 'preservim/nerdcommenter'
Plug 'airblade/vim-gitgutter'
Plug 'LunarWatcher/auto-pairs'
Plug 'SirVer/ultisnips', { 'on': [] }
Plug 'honza/vim-snippets', { 'on': [] }
Plug 'tpope/vim-surround'
" fugitive.vim: A Git wrapper so awesome, it should be illegal
@ -421,6 +423,14 @@ let g:vim_json_conceal = 0
let g:markdown_syntax_conceal = 0
""" ultisnips
" If you want :UltiSnipsEdit to split your window.
" let g:UltiSnipsEditSplit="vertical"
let g:UltiSnipsExpandTrigger='<c-t>'
" let g:UltiSnipsJumpForwardTrigger="<c-b>"
" let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:git_messenger_close_on_cursor_moved = v:false
let g:git_messenger_always_into_popup = v:true
hi gitmessengerHash term=None guifg=#f0eaaa ctermfg=111
@ -919,7 +929,10 @@ augroup async_plug_load
autocmd!
" these plugins take the longest to load, let's do it in a semi-non-blocking
" fashion
autocmd CursorHold,CursorHoldI * call plug#load('vim-clang', 'vim-speeddating')
" used to use CursorHold,CursorHoldI but I'm not sure if that didn't go
" off on *every* CursorHold, so this is the solution (perhaps not as async
" anymore)...
autocmd BufWinEnter * call plug#load('vim-speeddating', 'ultisnips', 'vim-snippets')
\| autocmd! async_plug_load
augroup END