while Integrating ultisnip and supertab - I am trying to map F7 so if there are completion to be made with supertab or ultisnip - try to complete, otherwise if there are no suggested patterns (and ultisnip cant expand), ultisnip forwardsJump.
but complete_check() always return 0
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<C-l>"
imap <expr> <F7> complete_check() == 0 ? "<\tab>" : "\<C-l>"
can somebody help me make it work? Thanks!!
From
:help complete_check()
:Are you sure
complete_check()
is the right tool for the job?