Get diagnostics
nvim_diagnosticsRetrieve LSP diagnostics for a buffer or all buffers to quickly identify and fix errors and warnings.
Instructions
Return LSP/diagnostic entries (errors, warnings, etc.) for a buffer, or for all buffers if none is given. Great for letting the agent see and fix problems the way Cursor does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bufnr | No | Buffer number. Omit for all buffers. |