lifepillar / vim-mucomplete

Chained completion that works the way you want!
MIT License
911 stars 18 forks source link

Can't insert tab even when no suggestions are shown #168

Closed prati0100 closed 4 years ago

prati0100 commented 4 years ago

Hi,

When my cursor is at the end of a word and I try to hit \<Tab>, nothing happens. No suggestions show (because there are none to show), and the tab character doesn't get inserted. I have to hit \<C-V>\<Tab> to insert a tab which is a tad bit annoying.

Example:

2020-01-17-153450_89x26_scrot

When I try to press the tab here, nothing happens. The tab character is not inserted and no completion menu is shown.

I have set completeopt=menuone,noselect

Is it possible to fix this problem?

lifepillar commented 4 years ago

I have added a new option to enable the behaviour you have requested. Upgrade to the current master and try:

let g:mucomplete#tab_when_no_results = 1

Feel free to reopen if this does not work as expected.

prati0100 commented 4 years ago

Thanks for taking this on, but I have the same behavior as before even after enabling the option. Tabs are not inserted when there are no suggestions.

Mucomplete related settings I have:

set completeopt+=menuone
set completeopt+=noselect
set previewheight=2
set shortmess+=c
set dictionary+=spell

let g:mucomplete#enable_auto_at_startup = 1
let g:mucomplete#tab_when_no_results = 1
lifepillar commented 4 years ago

Sorry, there was a typo in the name of the option. Please update to the current master and try again.

prati0100 commented 4 years ago

Sorry for the late response. It works now. Thanks.