Deoplete.nvim: Tabbing Moves From Bottom Up

Created on 14 Dec 2015  路  6Comments  路  Source: Shougo/deoplete.nvim

Tabbing through the auto complete options happens from the bottom up. Screen shots show the movement happen from top down. I do not see a way to change this. Possibly add an option?

OS: OSX 10.11.2
NVIM: v0.1.1-15-g81960df

question

Most helpful comment

tabbing needs to be mapped. The default behaviour is CTRL-N to cycle forward (from top) and CTRL-P to cycle backwards (from bottom).

here is the mapping I use (I think I got it from Shougo's neocomplete README)

" use tab to forward cycle
inoremap <silent><expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" use tab to backward cycle
inoremap <silent><expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"

All 6 comments

tabbing needs to be mapped. The default behaviour is CTRL-N to cycle forward (from top) and CTRL-P to cycle backwards (from bottom).

here is the mapping I use (I think I got it from Shougo's neocomplete README)

" use tab to forward cycle
inoremap <silent><expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
" use tab to backward cycle
inoremap <silent><expr><s-tab> pumvisible() ? "\<c-p>" : "\<s-tab>"

@hassan-k thanks i'll give this a shot

thanks @hassan-k :+1:

@westlywright @Shougo move selection from the bottom up or from top down,I think it is feature of vim ,you can use ctrl+p or Ctrl + n ,also imap anything you like,it is not the business of deoplete,It is just my own opinion

@Shougo maybe it's intersting to give this information in doc/deoplete.txt ? And inform do not use plugins as SuperTab ?

maybe it's intersting to give this information in doc/deoplete.txt ?

It is already added.

        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"}}}

And inform do not use plugins as SuperTab ?

I don't want to inform it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tchia04 picture tchia04  路  3Comments

firedev picture firedev  路  4Comments

callmekohei picture callmekohei  路  5Comments

rafi picture rafi  路  4Comments

pappasam picture pappasam  路  4Comments