Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions autoload/CleverTab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ function! CleverTab#Complete(type)
return ""

elseif a:type == 'ultisnips' && !g:CleverTab#cursor_moved && !g:CleverTab#stop
let g:ulti_x = UltiSnips#ExpandSnippetOrJump()
if g:ulti_expand_or_jump_res
if exists('g:CleverTabUltiExpandOrJump')
let g:ulti_x = UltiSnips#ExpandSnippetOrJump()
else
let g:ulti_x = UltiSnips#ExpandSnippet()
endif
if (exists('g:ulti_expand_or_jump_res') && g:ulti_expand_or_jump_res) || (exists('g:ulti_expand_res') && g:ulti_expand_res)
echom "Ultisnips"
let g:CleverTab#next_step_direction="0"
let g:CleverTab#stop=1
Expand Down