nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

Hide the auto complete window completely

Open nparthas opened this issue 2 years ago • 8 comments

Hi,

I was wondering if it was possible currently to completely hide the autocompletion window. I'd like to have something like this, which I saw was from this post.

I've tried changing some of the completeopts but taking a brief look through the code it seems like there are parts that are dependent of having menu,menuone,noselect as changing them in the plugin+nvim config led to some weird behaviour.

image

I saw the option for ghost_text which is what I'd like to use along with a hidden window, so that I can cycle through suggestions without having the popup take up space on the screen.

Not asking for a new feature, just if it's currently doable.

Edit:

If that's not possible, I can shrink the menu size down to just one entry with pumheight=1, but is there a way to disable the LSP documentation info window?

nparthas avatar May 25 '22 06:05 nparthas

I would love this feature.

Given this was actually a thing, it would also be nice if it was possible to bring the completion menu up on demand, so that you aren't completely locked into just one line.

jonatan-branting avatar Jun 23 '22 07:06 jonatan-branting

Hm. If search mode or command line mode, statusline can be used for completion menu. Please see.

https://github.com/hrsh7th/nvim-cmp/commit/124f1611f1b7cd9fb2892f0597881e007c99b652

Shougo avatar Jun 23 '22 08:06 Shougo

https://github.com/hrsh7th/nvim-cmp/issues/406

ghost_text does not support hide the completion window.

Shougo avatar Jun 23 '22 10:06 Shougo

Given this was actually a thing, it would also be nice if it was possible to bring the completion menu up on demand, so that you aren't completely locked into just one line.

You can disable the completion menu by autocomplete = false. For manual completion, you can use cmp.mapping.complete().

Shougo avatar Jun 23 '22 11:06 Shougo

autocomplete = true is not support toggle, must comment this option in personal config file

oeyoews avatar Jul 30 '22 07:07 oeyoews

The implementation should have been able to do this, but the current nvim-cmp is badly designed and difficult to implement. Sorry...

hrsh7th avatar Aug 14 '22 16:08 hrsh7th

this would be really nice to have

volpd avatar Aug 30 '23 12:08 volpd

really good feature

xiantang avatar Oct 11 '23 08:10 xiantang