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

Does not complete from current buffer when first opening files #172

Closed
jackkinsella opened this issue Dec 30, 2019 · 4 comments
Closed

Does not complete from current buffer when first opening files #172

jackkinsella opened this issue Dec 30, 2019 · 4 comments
Labels

Comments

@jackkinsella
Copy link

Hi,

I've been using asyncomplete for a few weeks and am v. happy with the lsp integration. I noticed a snag, however, with non-lsp autocomplete of the current buffer.

Perhaps you feel this is out of scope, but I'd argue that current buffer completion is a feature of autocomplete that most programmers would intuitively expect.

Reproduction steps

Open a file from the command line:

$ nvim my_existing_file.random_ending

Type a word from the file. It will not autocomplete.

By contrast, Vim's built-in <C-x><C-p> works just fine.

(I also tried with the aysnccomplete/buffers plugin and this suffers from the same issue.)

Related issues

When you open a brand new file from an existing VIM process, there is also no autocompletion of this new buffer. The problem persists even after saving the file.

The way to get things working here, assuming the buffers plugin is loaded, is to type :e to load the file again and trigger BufWinEnter.

@jmdevin
Copy link

jmdevin commented Feb 27, 2020

I also encountered this on vim 8.2 with the asyncomplete-buffer.vim plugin installed. When I first open vim, results from the current buffer will not appear for completion. I need to 're-open' the buffer and then they appear.

@ipkiss42
Copy link

ipkiss42 commented Mar 7, 2020

I think this is a bug in the buffer plugin, not in asyncomplete.vim

See the issue I created there for a workaround.

@stale
Copy link

stale bot commented Oct 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 17, 2020
@stale stale bot closed this as completed Oct 24, 2020
@beavailable
Copy link

beavailable commented Sep 12, 2021

This is a bug and I have fixed it, see #265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants