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

Overzealous Auto-Complete #170

Open
atomdmac opened this issue Oct 12, 2018 · 0 comments
Open

Overzealous Auto-Complete #170

atomdmac opened this issue Oct 12, 2018 · 0 comments

Comments

@atomdmac
Copy link

atomdmac commented Oct 12, 2018

Reproduction Steps

Note: I'm using neovim

  • Add this to your init.vim
Plug 'xolox/vim-notes'
Plug 'xolox/vim-misc'
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'
Plug 'ncm2/ncm2-bufword'
  • Do the requisite :PlugInstall
  • Start a new note and start typing. Once you've typed a few words, try typing a word that you've already added to the buffer (or another open buffer)

Expected Behavior

The suggestion pop-up should appear with possible completion options

Actual Behavior

The first suggestion in the list is automatically selected and inserted into the buffer.

Possible Causes

After some discussion here and some experimentation, it seems that the issue is caused be this line of code where completeopt has longest appended to it. This is causing the noinsert option (which ncm2's README specifies is necessary for it to operate properly) to have no effect (per the built-in vim documentation for completeopt).

Has anyone else experienced this?

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

1 participant