Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expands UltiSnips snippet instead of progressing through popup completion menu #11

Open
gotgenes opened this issue Nov 7, 2016 · 0 comments

Comments

@gotgenes
Copy link

gotgenes commented Nov 7, 2016

Example VIMRC

set nocompatible

set runtimepath+=~/.vim/plugins/repos/github.com/Shougo/dein.vim

" Required:
call dein#begin('~/.vim/plugins')

" Let dein manage dein
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/neocomplete.vim')
call dein#add('SirVer/ultisnips')
call dein#add('honza/vim-snippets')
call dein#add('neitanod/vim-clevertab')
call dein#end()

filetype plugin indent on
syntax enable

if dein#check_install()
  call dein#install()
endif

let g:neocomplete#enable_at_startup = 1

call CleverTab#NeoCompleteFirst()

Steps to reproduce

  1. Start Vim using the VIMRC above and edit the VIMRC above
  2. Invoke :call CleverTab#NeoCompleteFirst() (See discussion in Calling the function or defining the mappings in .vimrc doesn't work #1.)
  3. Go into insert mode and start a new line.
  4. Type c.
  5. Hit <Tab> to open the completion popup menu.
  6. Continue to hit <Tab> until c) is highlighted.
  7. Hit <Tab> one more time.
  8. Observe that, instead of cycling past this entry, the c) copyright snippet gets expanded.

Expected outcome:

<Tab> would have continued to cycle through the popup completion menu, rather than invoke the snippet.

Note this behavior is present even if g:UltiSnipsExpandTrigger is set to something other than <Tab>, e.g.,

let g:UltiSnipsExpandTrigger = '<F5>'

I think the priority of checking pumvisible needs to be higher (e.g., first thing checked) when CleverTab is handling <Tab>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant