Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

TAB can't switch between the items in the list #853

Closed cslxiao closed 6 years ago

cslxiao commented 6 years ago

After installing the plugin in vim8, I can get the popup list. But I cannot switch between the item with TAB key, only the direction keys works. Pressing TAB still get 4 blanks. Thanks in advance.

Shougo commented 6 years ago
inoremap <silent><expr> <TAB> pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ deoplete#mappings#manual_complete()
function! s:check_back_space() abort "{{{
  let col = col('.') - 1
  return !col || getline('.')[col - 1]  =~ '\s'
endfunction"}}}

Please read the documentation.

t184256 commented 5 years ago

People of the future: it's just deoplete#manual_complete() now, not deoplete#mappings#manual_complete().