How to map gR to have the very same behavior as gr (LSP References)?
#6490
-
questionIn a vanilla LazyVim installation we have lazyvim-gr-2025-09-21_11.46.28.mp4How can I map my attemptMy first attempt was to look into the "official" return {
"neovim/nvim-lspconfig",
opts = function()
local keys = require("lazyvim.plugins.lsp.keymaps").get()
-- use gR to "Go to References"
keys[#keys + 1] = { "gR", vim.lsp.buf.references, desc = "References", nowait = true }
end,
}It kinda works, but the references are not shown in the regular picker. See the video: lazyvim-gR-2025-09-21_12.03.42.mp4So, repeating my question: how can I make |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Depending on the picker you use, you have to use the corresponding command. For snacks_picker see here and fzf-lua here or if you use Telescope here. |
Beta Was this translation helpful? Give feedback.
Depending on the picker you use, you have to use the corresponding command.
For snacks_picker see here and fzf-lua here or if you use Telescope here.