Rename a symbol everywhere
Just ask:rename_symbol — one LSP-backed call updates every file and verifies there are no dangling references.
Works for functions, classes, types, interfaces, variables, enums. No need to tell it which file.
Move a symbol to a different file
Rename a file
Extract a function or variable
refactor extract_function — an LSP-backed code action. The extracted code becomes a new function with the right parameters and return type.
Organize imports
Tips
- You don’t need to say which file for rename. The agent finds it.
- If multiple symbols share a name, the agent will ask you to pick.
- Run
/lsp statusto confirm your LSP is attached before a big rename. - Changes are checkpoint-saved automatically.
Ctrl+Bundoes them all.

