Deoplete.nvim: How to move and select suggested autocompletion?

Created on 29 Feb 2016  路  1Comment  路  Source: Shougo/deoplete.nvim

I cannot walk up or down the list of autocompletions
and i cannot select any specific autocompletion to be inserted.
I believe that some key mappings are missing.
Could you maybe add an example to this project's front page on how to map deoplete actions to its default insert mode keys.

Btw, i have the initialization setting in my init.vim
let g:deoplete#enable_at_startup = 1
and i get a list of suggested autocompletions.

question

Most helpful comment

take this

inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
    return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
endfunction
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

>All comments

take this

inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
    return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
endfunction
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomspeak picture tomspeak  路  5Comments

ChristianChiarulli picture ChristianChiarulli  路  5Comments

callmekohei picture callmekohei  路  5Comments

lowski picture lowski  路  3Comments

firedev picture firedev  路  4Comments