-
Notifications
You must be signed in to change notification settings - Fork 187
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
Get number of currently visible context lines #242
Comments
any update on this? this number is easily obtainable by doing I suggest making it and
|
No updates. This is not planned. |
ahaa, would a PR be welcomed? |
No. I do not wish to support and maintain exposing windows IDs in the API. |
Understandable, I've mentioned exposing the How about the more specific approach mentioned in the issue title, being able to know the geometry of the ctx window is crucial in making it play nice w other plugins. |
Is there currently a way to programmatically obtain the number of visible
treesitter-context
lines?For context, in my Neovim config I currently have an auto-command which only enables
'scrolloff'
when the cursor is on the top half of the screen, ideally I'd like to also dynamically change the number of'scrolloff'
lines based on how manytreesitter-context
lines are visible:The text was updated successfully, but these errors were encountered: