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
It'd be nice if we could show the line number of the context #40
Comments
Hey, thanks for the issue! I agree that would be great! There are a few caveats though:
So for now I'm not sure what the best way would be to go about this. What do you think? As for navigating to the context lines. If you just want to just to the beginning of the current function try |
Sorry, I'm a layman in vimscript. 😔 In the alternatives above, I think I'd stick with the third option, but you'd have a hard work figuring out what is the right comment symbol for the language. What if you start with a simple naive implementation mapping the most commons languages these days? I would be a simple MPV for the feature. Anyway, your lib is awesome. Thanks for it. |
Note that you can do something like this and this by forgetting about filetype and just “simply” copying highlights and manually constructing a line-looking line. |
@zsugabubus: That looks very nice! Can you help me with how that could be done? |
Of course. Just finished with it today, so… may contain bug… but it seems working. Code. If you have any questions let me know, but I think it can be easily ported with not too much effort. |
Wow, that's awesome! Thank you so much for sharing this! ❤️ Btw, did you manage to improve the performance in your implementation in comparison to context.vim? Or did you find anything else you think could be improved in here? Please feel free to open new issues, I'd be very interested in your feedback 👍 |
Wait at least one day until you start digging yourself into it. I just now saw another little bug. UPDATE: This one eliminated.
I wouldn’t say so, but I think there is not too much room for improvements since UPDATE: Pressing j continuously: context.vim: 100%; mine: 70-80% CPU usage.
Okay… |
I'm very excited to see that somebody have been working on that. I've got a little few plugins in my dotfile, Thank for that. |
@lourenci @zsugabubus @toddyamakawa @christopher-francisco @scarfacedeb @wmusial: Huge thanks again to @zsugabubus for helping out with their ideas (and reference implementation!) of how to do highlights manually. I basically took their approach and integrated it to context.vim. I'm very happy with the result. Here's a new screenshot: |
Thanks for the plugin.
Sometimes, I'm reading a lot of specs and want to jump right to that context. Is there some way to do that? Maybe if we had the line number on the left of the context?
The text was updated successfully, but these errors were encountered: