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

issue with this plugin and neosnippet #12

Open
wsdjeg opened this issue Apr 2, 2017 · 1 comment
Open

issue with this plugin and neosnippet #12

wsdjeg opened this issue Apr 2, 2017 · 1 comment
Assignees
Labels

Comments

@wsdjeg
Copy link
Collaborator

wsdjeg commented Apr 2, 2017

mini vimrc

set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/neosnippet.vim
set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/neosnippet-snippets
set rtp+=~/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim
set rtp+=~/.cache/vimfiles/repos/github.com/tweekmonster/deoplete-clang2
let g:deoplete#enable_at_startup = get(g:, 'deoplete#enable_at_startup', 1)

imap <expr><Tab>
            \ neosnippet#expandable_or_jumpable() ?
            \ "\<Plug>(neosnippet_expand_or_jump)" : "\<Tab>"

reproduce step:

  1. open vim via vim -u test.vim
  2. :e test.c
  3. type i to insert mode, then type into main<tab>

you will see

main<Plug>(neosnippet_expand_or_jump)

but I think it should be

int main(int argc, char const* argv[])
{
    
    return 0;
}

ref : wsdjeg/SpaceVim#356

@Shougo
Copy link
Contributor

Shougo commented Apr 3, 2017

deoplete-clang2 overwrites <Tab> mapping.
It seems the mapping conflict.

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

No branches or pull requests

3 participants