nvim-cmp
nvim-cmp copied to clipboard
Hide the auto complete window completely
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.
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?
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.
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
https://github.com/hrsh7th/nvim-cmp/issues/406
ghost_text
does not support hide the completion window.
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()
.
autocomplete = true
is not support toggle, must comment this option in personal config file
The implementation should have been able to do this, but the current nvim-cmp is badly designed and difficult to implement. Sorry...
this would be really nice to have
really good feature