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

Doesn't work in php #95

Closed
mostafaqanbaryan opened this issue Apr 16, 2024 · 2 comments
Closed

Doesn't work in php #95

mostafaqanbaryan opened this issue Apr 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mostafaqanbaryan
Copy link

Describe the bug
So I recently installed hlchunk and It's beautiful.

But something I came across is that it doesn't work well with php.

If you have a large file and move between lines, it's obvious that the chunk line is stuck on some other place.

To Reproduce
Save the code as php and move between methods.

chunk should easily move between class and its methods

(If it's didn't happen, I would upload an screencast)

<?php

class test{
    function a(){
        echo 'test a';
    }

    function b(){
        echo 'test b';
    }
}

Expected behavior
As shown in screenshot, I've moved to function b, but chunk stuck on function a

Screenshots
image

Additional context
Tested with lua and js, but those work fine

@shellRaining
Copy link
Owner

sorry for late reply, I can't reproduce this bug, can you switch to dev branch and have a try again?

@shellRaining shellRaining added the bug Something isn't working label May 28, 2024
@mostafaqanbaryan
Copy link
Author

sorry for late reply, I can't reproduce this bug, can you switch to dev branch and have a try again?

I don't know if it was nvim 9 or hlchunk's previous commits, but it's now fixed on nvim 10.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants