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

nx.screen.row()

No documentation comment in the prelude.

Defined in api.lua.

nx.screen.col()

No documentation comment in the prelude.

Defined in api.lua.

nx.screen.pos(win, lnum, col)

nx.screen.pos(win, lnum, col) [alias vim.fn.screenpos]: the 1-based screen cell {row, col, curscol, endcol} of buffer position [lnum, col] in window win (0/current). A completion plugin reads it to anchor its completion menu at the cursor. Computed from the window mirror’s origin + scroll: row counts down from the top text line; col is the display width of the line up to col, shifted by the horizontal scroll. INCOMPLETE: inherits nx.win.screenpos’s tiled-origin approximation ({1,1}) and does not add a number/sign textoff; curscol/endcol collapse onto col. Faithful for the common single-window, gutterless case.

Defined in api.lua.