Skip to content

Commit

Permalink
docs: Fix lua keybindings in README (#321)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
IgorAssuncao committed Jul 29, 2023
1 parent ab6dd3f commit 90044b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ nnoremap gR <cmd>TroubleToggle lsp_references<cr>
vim.keymap.set("n", "<leader>xx", function() require("trouble").open() end)
vim.keymap.set("n", "<leader>xw", function() require("trouble").open("workspace_diagnostics") end)
vim.keymap.set("n", "<leader>xd", function() require("trouble").open("document_diagnostics") end)
vim.keymap.set("n", "<leader>xl", function() require("trouble").open("quickfix") end)
vim.keymap.set("n", "<leader>xq", function() require("trouble").open("loclist") end)
vim.keymap.set("n", "<leader>xq", function() require("trouble").open("quickfix") end)
vim.keymap.set("n", "<leader>xl", function() require("trouble").open("loclist") end)
vim.keymap.set("n", "gR", function() require("trouble").open("lsp_references") end)
```

Expand Down

0 comments on commit 90044b1

Please sign in to comment.