From: Julien Moutinho Date: Mon, 16 Mar 2026 09:52:52 +0000 (+0100) Subject: +user/op(nvim)(keymap): add gr to put LSP references in the quickfix list X-Git-Url: https://git.sourcephile.fr/julm/julm-nix.git/commitdiff_plain +user/op(nvim)(keymap): add gr to put LSP references in the quickfix list --- diff --git a/home-manager/profiles/nvim/lua/config/keymaps.lua b/home-manager/profiles/nvim/lua/config/keymaps.lua index 4d3521d..145f88d 100644 --- a/home-manager/profiles/nvim/lua/config/keymaps.lua +++ b/home-manager/profiles/nvim/lua/config/keymaps.lua @@ -20,6 +20,9 @@ vim.keymap.set("n", "l", ":wincmd l", {}) vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, { silent = true, desc = "Go to definition" }) +vim.keymap.set("n", "gr", function() + vim.lsp.buf.references() +end, { silent = true, desc = "List references in the quickfix list" }) -- Navigating the buffer list -- vim.keymap.set("n", "", ":bprevious!", { silent = true })