LSP code actions
nvim_lsp_code_actionList the code actions (quick fixes, refactors) the language server offers at a position, including any diagnostics there. Pass applyIndex (1-based, from a previous listing) to apply one of them.
Instructions
List the code actions (quick fixes, refactors) the language server offers at a position, including any diagnostics there. Pass applyIndex (1-based, from a previous listing) to apply one of them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | 1-based column number. Default 1. | |
| line | No | 1-based line number. Default 1. | |
| path | No | Target buffer by file path (must already be open). Ignored if bufnr is set. | |
| bufnr | No | Target buffer number. Omit to use the path or the current buffer. | |
| applyIndex | No | 1-based index of the action to apply. Omit to only list. |