4

Iam looking for an configuration (init.vim) to expand an neosnippet when selected with the deoplete plugin drop down menu.

What i've done so far:

  1. Added all to vim-plug

    call plug#begin ('~/.local/share/nvim/plugged')
    Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
    Plug 'Shougo/neosnippet.vim' | Plug 'Shougo/neosnippet-snippets'
    call plug#end ()
    
  2. configured for autostart

    " Use deoplete.
    let g:deoplete#enable_at_startup = 1
    " Use smartcase.
    let g:deoplete#enable_smart_case = 1
    " Set minimum syntax keyword length.
    let g:deoplete#sources#syntax#min_keyword_length = 2
    

This leads to this screen:deoplug drop down selection

Now I want to expand this snippet, when hitting <Enter> at the selection. Has anyone suggestion how to achiev that?

Thanks for your time and best regards,

Befedo

4

1 に答える 1