Send input to Neovim
nvim_inputQueue Neovim key sequences as if typed by a human to trigger commands and edits, then use nvim_wait to ensure the screen updates before verifying.
Instructions
Send a key sequence to Neovim. Returns as soon as the keys are queued, not when the screen has updated: follow with nvim_wait before observing, otherwise the observation races the redraw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key sequence in Neovim notation, e.g. "ihello<Esc>", "<C-n>", "gg", "<leader>ff". Sent through nvim_input, so mappings and pending state behave exactly as for a human. | |
| sessionId | Yes | Session id returned by nvim_launch or nvim_attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| sessionId | Yes | ||
| bytesWritten | Yes |