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

parser.timer breaks blink.cmp #28

Open
OmegaLambda1998 opened this issue Nov 13, 2024 · 1 comment
Open

parser.timer breaks blink.cmp #28

OmegaLambda1998 opened this issue Nov 13, 2024 · 1 comment

Comments

@OmegaLambda1998
Copy link

Since parser.timer is a userdata type, it can't be copied, which stops blink.cmp from providing accepting completion items, since it deepcopies those items. If instead of parser.new containing self.timer = timer.new() you could modify parser.start_parsing to be

local t = timer.new()
t:start(0, 50, function()
...
t:stop()
::finish::
end)

Which (I believe) provides the same functionality without carrying the timer around everywhere you go.

@micangl
Copy link
Owner

micangl commented Nov 23, 2024

Thanks for contributing. Unfortunately, I don't use blink.cmp and, as I really don't have available time at the moment, I won't be able to take a look at this.

If you'd like to open a PR I may do so, though; sorry.

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