diff --git a/lua/types/wezterm/init.lua b/lua/types/wezterm/init.lua index 1b40e44..36fdd90 100644 --- a/lua/types/wezterm/init.lua +++ b/lua/types/wezterm/init.lua @@ -61,7 +61,7 @@ ---@field permute_any_mods (fun(tbl: MouseBindingBase): MouseBinding)|(fun(tbl: KeyBindingBase): KeyBinding) ---@field read_dir fun(path: string): string Returns an array containing the absolute file names of the directory specified. Due to limitations in the lua bindings, all of the paths must be able to be represented as UTF-8 or this function will generate an error. ---@field reload_configuration fun(): nil Immediately causes the configuration to be reloaded and re-applied. ----@field run_child_process fun(args: string[]): { success: boolean, stdout: string, stderr: string } Will attempt to spawn that command and will return a tuple consisting of the boolean success of the invocation, the stdout data and the stderr data. +---@field run_child_process fun(args: string[]): success: boolean, stdout: string, stderr: string Will attempt to spawn that command and will return a tuple consisting of the boolean success of the invocation, the stdout data and the stderr data. ---@field running_under_wsl fun(): boolean Returns a boolean indicating whether we believe that we are running in a Windows Services for Linux (WSL) container. ---@field shell_join_args fun(args: string[]): string Joins together its array arguments by applying posix style shell quoting on each argument and then adding a space. ---@field shell_quote_arg fun(string: string): string Quotes its single argument using posix shell quoting rules. diff --git a/lua/types/wezterm/mux/init.lua b/lua/types/wezterm/mux/init.lua index 263d1e7..760bbe8 100644 --- a/lua/types/wezterm/mux/init.lua +++ b/lua/types/wezterm/mux/init.lua @@ -12,4 +12,4 @@ ---@field rename_workspace fun(old: string, new: string): nil Renames the workspace old to new. ---@field set_active_workspace fun(name: string): nil Sets the active workspace name. If the requested name doesn't correspond to an existing workspace, then an error is raised. ---@field set_default_domain fun(domain: MuxDomain): nil Assign a new default domain in the mux. The domain that you assign here will override any configured `default_domain` or the implicit assignment of the default domain that may have happened as a result of starting wezterm via `wezterm connect` or `wezterm serial`. ----@field spawn_window fun(...: any): { tab: MuxTab, pane: Pane, window: MuxWindow } Spawns a program into a new window, returning the MuxTab, Pane and MuxWindow objects associated with it. When no arguments are passed, the default program is spawned. TODO +---@field spawn_window fun(...: any): tab: MuxTab, pane: Pane, window: MuxWindow Spawns a program into a new window, returning the MuxTab, Pane and MuxWindow objects associated with it. When no arguments are passed, the default program is spawned. TODO