1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
Amir
2021-05-05 10:25:00 +02:00
parent 8e54cbc92e
commit a7a471a207
265 changed files with 7773 additions and 1880 deletions

View File

@ -583,7 +583,22 @@ function! snipMate#TriggerSnippet(...) abort
call feedkeys(SuperTabKey) | return ''
endif
call feedkeys("\<esc>a", 'n') " Close completion menu
call feedkeys("\<tab>") | return ''
" Once we've dismissed the completion menu, we have to cause this
" function to be executed over again, so that we actually get the
" snippet triggered. (Simply continuing to execute fails because
" we have to finish this function before the results of feedkeys take
" effect and dismiss the completion menu. Recursing also fails for
" similar reasons.)
if a:0 == 0
" Would be nice to have a more robust solution than manually
" branching on the arguments. I tried to do something like:
" call call(function('snipMate#TriggerSnippet'), a:000)
" But I couldn't quite get it working. Maybe somebody else with
" better vimscript skills can find a way to make it work, though?
call feedkeys("\<Plug>snipMateNextOrTrigger") | return ''
else
call feedkeys("\<Plug>snipMateTrigger") | return ''
endif
endif
if exists('b:snip_state') && a:0 == 0 " Jump only if no arguments