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

[Enhancement] trigger lens only for current scope #12

Open
gennaro-tedesco opened this issue Mar 15, 2023 · 0 comments
Open

[Enhancement] trigger lens only for current scope #12

gennaro-tedesco opened this issue Mar 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gennaro-tedesco
Copy link

Thank you for the great plugin, it is awesome!

What do you think about allowing the users to trigger the plugin only when in the current function scope, rather than showing all the references for all functions in a buffer? I find that having a code lens with references is fantastic, however it may sometimes clutter the screen (and slow down scrolling and movements, probably due to extensive treesitter parsing); as such, a great quality-of-life improvement would be to only show the code lens for the function my cursor is in.

Likewise, a similar option could be to trigger to toggle the lens on CursorHold and then re-toggle it off automatically when the cursor moves (or similar mechanics).

@VidocqH VidocqH added the enhancement New feature or request label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants