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: readme examples for lua toggle instead of `open` #340

Closed davidgamero closed 10 months ago

davidgamero commented 10 months ago

Did you check the docs?

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

when using the configs from the README, the lua examples don't toggle, while the vim script ones do

Describe the solution you'd like

offer a new set of lua example keymaps that do allow toggling, or update the existing ones to do so since i don't think it's an issue to add toggle when the current just opens (and does nothing once trouble is open)

Describe alternatives you've considered

putting a link to how to implement this yourself, but that is less user-friendly

Additional context

No response

folke commented 10 months ago

Just replace open with toggle and you're good to go. I've also updated the docs.

davidgamero commented 10 months ago

Tysm!