List or apply a code action
nvim_code_actionsLists LSP code actions at a specified position and applies quick fixes to diagnostics by selecting an action index, automatically saving the file.
Instructions
List LSP code actions at a position. Pass apply_index to apply one and save the file. Use this to apply quick fixes for diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number, 1-based | |
| path | Yes | File path | |
| column | Yes | Column number, 1-based | |
| wait_ms | No | LSP timeout | |
| apply_index | No | Index from a previous list call; omit to only list |