Run an Ex command
nvim_commandExecute Neovim Ex commands and receive Neovim's error messages if rejected. Does not wait for the screen to settle.
Instructions
Execute an Ex command. A command that Neovim rejects comes back as an error result with Neovim's own message. Like nvim_input, this does not wait for the screen to settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Ex command without the leading colon, e.g. "set number", "edit foo.txt", "wq". | |
| sessionId | Yes | Session id returned by nvim_launch or nvim_attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| command | Yes | ||
| sessionId | Yes |