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.cursor

nx.cursor.get(win)

No documentation comment in the prelude.

Defined in api.lua.

nx.cursor.set(pos, win)

nx.cursor.set(pos[, win]): move window win’s cursor (0/nil = the current window) to pos, a { row, col } pair in the SAME convention nx.cursor.get returns — a 1-based row and a 0-based byte col. The target is clamped into the buffer. This is the setter half of the cursor surface: the reveal / jump-to primitive a picker or a “go to definition”-style plugin uses; ordinary navigation stays plain normal-mode motion. Like the rest of the window mutation API it queues a window op the server applies after this chunk (the same “Lua queues, core mutates” flow), via the nx._win_set_cursor bridge.

Defined in api.lua.