Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'set completeopt=menuone,noinsert' not respected #43

Closed
astier opened this issue Aug 22, 2021 · 3 comments
Closed

'set completeopt=menuone,noinsert' not respected #43

astier opened this issue Aug 22, 2021 · 3 comments

Comments

@astier
Copy link

astier commented Aug 22, 2021

Currently it has to be set with nvim-cmp internally:

completion = {
  completeopt = 'menuone,noinsert',
},

Since completeopt is an option which is already built into vim why not just check for it instead of reinventing it a second time in nvim-cmp?

@hrsh7th
Copy link
Owner

hrsh7th commented Aug 22, 2021

What if the user wants to use completeopt = menu, menuone, noselect for auto-complete and completeopt = menu, menuone, longuest for omni-completion?

(google translated)

@hrsh7th
Copy link
Owner

hrsh7th commented Aug 22, 2021

And I received issues with this (so I documented it as a warning).

hrsh7th/nvim-compe#502
hrsh7th/nvim-compe#61
hrsh7th/nvim-compe#222

@ghost
Copy link

ghost commented Aug 22, 2021

You could do something like this if you want to use builtin completeopt with cmps':

  completion = {
    completeopt = table.concat(vim.opt.completeopt:get(), ","),
  }

@astier astier closed this as completed Aug 22, 2021
notfirefox added a commit to notfirefox/nvim-config that referenced this issue Aug 28, 2024
Configure `vim.opt.completeopt` in `core/config` and let nvim-cmp inherit its
setting using `table.concat` [1].

[1] hrsh7th/nvim-cmp#43
notfirefox added a commit to notfirefox/nvim-config that referenced this issue Aug 28, 2024
Configure `vim.opt.completeopt` in `core/config` and let nvim-cmp inherit its
setting using `table.concat` [1].

[1] hrsh7th/nvim-cmp#43
notfirefox added a commit to notfirefox/nvim-config that referenced this issue Aug 28, 2024
Configure `vim.opt.completeopt` in `core/config` and let nvim-cmp inherit its
setting using `table.concat` [1].

[1] hrsh7th/nvim-cmp#43
notfirefox added a commit to notfirefox/nvim-config that referenced this issue Aug 29, 2024
Configure `vim.opt.completeopt` in `core/config` and let nvim-cmp inherit its
setting using `table.concat` [1].

[1] hrsh7th/nvim-cmp#43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants