I am using neovim with
neosnippet.vim. I am trying to make
TAB key do both navigating through the popup menu and expand snippets when it's able to.
Here is my config.
" <TAB>: completion inoremap <expr><TAB> pumvisible() ? "\<C-n>" : neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" inoremap <expr><CR> pumvisible() ? "\<C-y>" : "\<CR>" inoremap <expr><Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
I am successfully to make
Tab navigating through popup menu but I won't be able to expand the snippet.
For example, when I have
function and press
Tab. Instead of expand the snippet. It became
Step I went through:
I am not sure what goes wrong here. Please help.