List all references to a symbol.
Section: Built-in LSP workflows
Find references
lua
lua
vim.keymap.set("n", "gr", vim.lsp.buf.references)Explanation
Helpful for refactors and impact analysis.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Built-in LSP workflows