nvim: plugin: compe: Use TAB and S-TAB to cycle through popup menu

We mistakenly dropped this while switching to compe from
completion-nvim.
This commit is contained in:
Sanchayan Maity 2021-02-05 13:56:32 +05:30
parent 51b848d1f6
commit 9c889caa9a

View file

@ -10,3 +10,7 @@ inoremap <silent><expr> <TAB>
inoremap <silent><expr> <CR> compe#confirm('<CR>')
inoremap <silent><expr> <C-e> compe#close('<C-e>')
" Use <Tab> and <S-Tab> to navigate through popup menu
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"