Language servers¶
Lsp queries a language server at a position in a file.
Servers start lazily and are reused within the session.
Operations¶
| Operation | Result |
|---|---|
goto_definition |
Symbol definition locations |
references |
Symbol uses |
hover |
Type and documentation information |
Positions use zero-based line and character offsets.
Setup¶
Install the server executable on PATH:
| Language | Executable |
|---|---|
| Rust | rust-analyzer |
| TypeScript / JavaScript | typescript-language-server |
| Python | pyright-langserver |
The tool queries files on disk; it does not send editor document-change notifications. Automatic diagnostic injection after edits is not implemented.