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: Redirect Trouble.nvim output to quickfix list #325

Closed that-ambuj closed 11 months ago

that-ambuj commented 11 months ago

Did you check the docs?

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

In my opinion, quickfix lists are faster that trouble.nvim. I use below lines to quickly move in a quickfix list without leaving my current file or window. Using j, k and enter are harder for me to get used to rather than just and .

vim.keymap.set("n", "<C-j>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<C-k>", "<cmd>cprev<CR>zz")

I want to combine the versatility of trouble.nvim with neovim's fast and efficient quickfix lists for a better workflow.

Describe the solution you'd like

Can we redirect trouble.nvim's output to quickfix list and open that rather than trouble.nvim's default virtual list?

Describe alternatives you've considered

None.

Additional context

No response

that-ambuj commented 11 months ago

I have somewhat acheived what I wanted trouble.nvim to do with some research and editing my dotfiles. I have to say, building that functionality was kind of time consuming but I did it(It could be it's own plugin too).

I'm sorry for opening this issue, it wasn't neccessary. If anyone wants to replicate my idea of quickfix list and location list in neovim, they can look at this commit diff https://github.com/that-ambuj/dotfiles/commit/ac66f466db89d2f3bf8fda96d9a60e3d35ab4bc7 .