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

First completion very slow #97

Open
alerque opened this issue Nov 4, 2019 · 2 comments
Open

First completion very slow #97

alerque opened this issue Nov 4, 2019 · 2 comments

Comments

@alerque
Copy link
Member

alerque commented Nov 4, 2019

When first opening a ledger file the first time a completion is run (usually the date field for me) it takes a long time to return the result. After that results are fine. If this is a function of caching the list, then we should background a job that is getting those ready when a file is opened, not waiting until the first request is made.

Neovim + external command for both account and payee completion

@bcashlol
Copy link

bcashlol commented Jun 19, 2021

With both nvim 0.5.0 and vim 8.2-2925, on a .ledger file with more than a few lines the first completion runs forever. I tried letting it run, and CPU was still at 100% after 24 hours.

Currently I find vim-ledger to be unusable because of this.

Example file where I experience this bug:

2021-01-01 open a:abc:def 
2021-01-01 open a:abc:ghi

Now start writing:

2021, vim-ledger hangs after typing "20".

@alerque
Copy link
Member Author

alerque commented Jun 19, 2021

Thanks for the small example. Unfortunately it doesn't reproduce for me, so that complicates things. I suspect some option I'm using in my init file is bypassing whatever your problem is. Can you include any config related to this plugin from your rc files?

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

No branches or pull requests

2 participants