Perform a semantic rename through LSP.
Section: Built-in LSP workflows
Rename a symbol
lua
lua
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename)Explanation
Safer and broader than plain text replacement.
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