Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nx.workspace

nx.workspace.dir()

nx.workspace.dir() -> the absolute workspace root (a string), or nil when this is not a --workspace launch. Read-only — nxvim chooses the workspace from the command line, not from Lua. For a daemon session this is the daemon’s directory.

Defined in nx.lua.

nx.workspace.active()

nx.workspace.active() -> true if this launch is a --workspace directory session, false otherwise.

Defined in nx.lua.