Skip to content

Commit

Permalink
docs: add a useful example for runExCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Nov 30, 2024
1 parent d999361 commit 6095dc0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/integration-tests/cypress/support/tui-sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ declare global {

runLuaCode(input: LuaCodeClientInput): Chainable<RunLuaCodeOutput>

/** Run an ex command in neovim.
* @example "echo expand('%:.')" current file, relative to the cwd
*/
runExCommand(input: ExCommandClientInput): Chainable<RunExCommandOutput>
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/library/src/server/cypress-support/contents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ it("should return the expected contents", async () => {
runLuaCode(input: LuaCodeClientInput): Chainable<RunLuaCodeOutput>
/** Run an ex command in neovim.
* @example "echo expand('%:.')" current file, relative to the cwd
*/
runExCommand(input: ExCommandClientInput): Chainable<RunExCommandOutput>
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/library/src/server/cypress-support/contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ declare global {
runLuaCode(input: LuaCodeClientInput): Chainable<RunLuaCodeOutput>
/** Run an ex command in neovim.
* @example "echo expand('%:.')" current file, relative to the cwd
*/
runExCommand(input: ExCommandClientInput): Chainable<RunExCommandOutput>
}
}
Expand Down

0 comments on commit 6095dc0

Please sign in to comment.