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.36k stars 175 forks source link

feat: add option to control cycling of result list #302

Closed willnorris closed 1 year ago

willnorris commented 1 year ago

Add new cycle_results option (default: true, the current behavior), to control whether to cycle the results list when reaching the beginning or end of the list.

I find myself regularly disoriented about where I am in a list of diagnostics when I cycle back to the beginning without realizing it. I always prefer to stop when I reach the end of the list so that it's obvious that I'm at the end (like setting scroll_strategy = limit in telescope). Going back to the beginning is simple enough with normal vim movements.

folke commented 1 year ago

thank you