Skip to content

neovim and deoplete-jedi doesn't work well with forked snipmate #191

Open

Description

@fission1110

Thank you for this plugin.
Years ago I gave up with making vim's tab behave more "ide like" and do completion with snippets.
Today I decided to give it another go and your plugin does exactly what I want.

I'm using deoplete's "complete as you type asynchronously" behavior with deoplete-jedi for python omni completion.
Well.. deoplete-jedi contains all language keywords for python, so it shows the popup menu for all of my snippets.

This breaks your snipmate fork, because if pumvisible() is true, it ignores the snippets and tries to do the default supertab behavior.
I would really like it to attempt the snippet before doing the completion behavior at all costs.

It would be nice if this were configurable.

https://github.com/ervandew/snipmate.vim/blob/7d57812381607a735ac25a6192ad17d63f1e4c7f/plugin/snipMate.vim#L168

if pumvisible() " Update snippet if completion is used, or deal with supertab
    if exists('SuperTabKey')
        call feedkeys(SuperTabKey) | return ''
    endif
    call feedkeys("\<esc>a", 'n') " Close completion menu
    call feedkeys("\<tab>") | return ''
endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions