nvim_runtime_lua

vim.SystemOpts

@inlinedoc

Fields9

SystemOpts.cwd : nil | string

Set the current working directory for the sub-process.

SystemOpts.env : {string, string | number} | nil

Set environment variables for the new process. Inherits the current environment with NVIM set to |v:servername|.

SystemOpts.clear_env : nil | boolean

env defines the job environment exactly, instead of merging current environment. Note: if env is nil, the current environment is used but without NVIM set.

SystemOpts.stdin : string | string[] | true | nil

If true, then a pipe to stdin is opened and can be written to via the write() method to SystemObj. If string or string[] then will be written to stdin and closed.

SystemOpts.stdout : fun(err: nil | string, data: nil | string) -> nil | boolean | nil

Handle output from stdout. (Default: true)

SystemOpts.stderr : fun(err: nil | string, data: nil | string) -> nil | boolean | nil

Handle output from stderr. (Default: true)

SystemOpts.text : nil | boolean

Handle stdout and stderr as text. Normalizes line endings by replacing \r\n with \n.

SystemOpts.timeout : nil | integer

Run the command with a time limit in ms. Upon timeout the process is sent the TERM signal (15) and the exit code is set to 124.

SystemOpts.detach : nil | boolean

Spawn the child process in a detached state - this will make it a process group leader, and will effectively enable the child to keep running after the parent exits. Note that the child process will still keep the parent's event loop alive unless the parent process calls [uv.unref()] on the child's process handle.