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

feat(inlayHint): add document enable/disable inlayHint commands. #5025

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nodech
Copy link

@nodech nodech commented May 30, 2024

Add {enable,disable}InlayHint commands. The base is toggleInlayHint, but this allows more control.

I wanted to disable inlay hints in insert mode, but without knowing the state of the inlayHints, calling toggle was not option. Additionally, just disabling (regardless of whether it's on) or enabling may be useful for other autocommands.

Unfortunately, I could not find a way to get configuration or state of the display hints, which is also critical to more advanced autocommands.
This PR is based on toggleInlayHint, but I could not find examples of how either configuration can be exposed to Lua/Autocommands nor current state whether it's displayed or not. This is the reason this is a draft, I would love to hear feedback about getting the configuration and current state from the Lua and how to make it happen.

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

Successfully merging this pull request may close these issues.

1 participant