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.11k stars 173 forks source link

feature: Customize the source on the user side? #481

Closed NGPONG closed 4 weeks ago

NGPONG commented 4 weeks ago

Did you check the docs?

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

In my configuration, there are many scattered hacker code snippets that can implement custom sources, such as gitsigns, lsp_xxx, marks, etc. After thorough research, I found that it might be more appropriate and feasible to leave the task of custom sources to the plugins themselves. This not only centralizes the previously scattered snippets into a more suitable place, but also enhances maintainability and consistency. Although they may need to adhere to certain standards (perhaps?). Therefore, I would like to know if there are plans to open up the task of custom sources to the user side. If you think this is a good idea, I am willing to contribute the code (just need some help).

Regards!

Describe the solution you'd like

see above

Describe alternatives you've considered

see above

Additional context

No response

folke commented 4 weeks ago

Plugins can already create custom sources. See todo-comments.nvim for an example

NGPONG commented 4 weeks ago

Thanks for your suggestion. please forgive my carelessness.