folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.24k stars 178 forks source link

feature: better zen-mode.nvim integration #353

Closed zach-is-my-name closed 2 months ago

zach-is-my-name commented 9 months ago

"I'm always frustrated when..."

I'm in Zenmode (yours) I run :TroubleToggle to open Trouble window Problem #0: (possibly not fixable but highly annoying) ZenMode exits Problem \#1: The cursor doesn't jump to the Trouble window

I run :TroubleToggle again to close Trouble window Problem \#2: Zenmode not re-activated

Describe the solution you'd like

Problem #0: (long shot I know) Zenmode remains active with Trouble window active

Problem \#1: Cursor does jump to the Trouble window when :TroubleToggle is pressed while in Zenmode

Problem \#2: Zenmode is re-activated when :TroubleToggle is run to close Trouble window

Describe alternatives you've considered

maybe using the zenmode hooks, i forget if trouble also offers hooks

Additional Context

I edit/view in Zenmode at all times. If I could make it an un-exitable default I would