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

Fix lua keybindings in README #321

Closed IgorAssuncao closed 1 year ago

IgorAssuncao commented 1 year ago

The lua keybinds below were like this:

vim.keymap.set("n", "<leader>xl", function() require("trouble").open("quickfix") end)
vim.keymap.set("n", "<leader>xq", function() require("trouble").open("loclist") end)

As it might not be noticeable the <leader>xl keybinding was opening the quickfix and the <leader>xq keybinding was opening the loclist.

So I thought about changing the order just to be more straight forward to new users and to be in sync with the vim keybindings above the lua ones and the result was:

vim.keymap.set("n", "<leader>xq", function() require("trouble").open("quickfix") end)
vim.keymap.set("n", "<leader>xl", function() require("trouble").open("loclist") end)