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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: events for opening, closing, and resizing Trouble window? #365

Open
1 task done
j-hui opened this issue Dec 9, 2023 · 0 comments
Open
1 task done

feature: events for opening, closing, and resizing Trouble window? #365

j-hui opened this issue Dec 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@j-hui
Copy link

j-hui commented Dec 9, 2023

Did you check the docs?

  • I have read all the trouble.nvim docs

Is your feature request related to a problem? Please describe.

Hey there 馃憢 I'm the author for fidget.nvim.

I'm trying to play nice with other plugins that open windows: I'd like Fidget to avoid rendering over those windows (or at least do something to avoid unreadable output). See j-hui/fidget.nvim#163 for an example of this issue with nvim-tree.

Fidget suffers the same problem with Trouble windows.

Describe the solution you'd like

I'd like Trouble to expose some events that fire when the Trouble window is opened, closed, and resized (similar to what nvim-tree does).

Describe alternatives you've considered

I considered listening for Neovim's WinNew and WinResize events, but it would be very difficult to distinguish the events fired for windows that Fidget should render over (e.g., another user-created text buffer) versus the ones it shouldn't (e.g., a Trouble window).

Additional context

No response

@j-hui j-hui added the enhancement New feature or request label Dec 9, 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

1 participant