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

nx.qf.actions.jump()

nx.qf.actions.jump(): the default <CR> action in the quickfix window — jump to the entry on the cursor’s line. Bound buffer-locally as a default map by the FileType qf autocmd, so a user <CR> map overrides it (the rebindable panel-action pattern; cf. nx.buffers.actions.open).

Defined in keymap.lua.

nx.qf.getqflist(what)

nx.qf.getqflist([what]) -> list | dict [aliases nx.getqflist / vim.fn.getqflist]: the quickfix list. With no argument (or a non-table), returns the array of entry dicts (a shallow copy of the nx._qflist mirror the server pushes). With a what dict, returns a dict carrying only the requested keys (title / items / size).

Defined in vimfn.lua.

nx.qf.setqflist(list, action, what)

nx.qf.setqflist(list[, action[, what]]) -> 0 [aliases nx.setqflist / vim.fn.setqflist]: populate the quickfix list. list is an array of entry dicts; action is “ “ (new / the default), “a” (append), or “r” (replace current). what may instead carry lines (raw output parsed against efm), items, title, or efm. The work happens server-side (a queued op), so the parsed result is visible to nx.qf.getqflist() only after the server drains the op — read it on a later tick.

Defined in vimfn.lua.

nx.qf.getloclist(winnr, what)

nx.qf.getloclist(winnr[, what]) -> list | dict [aliases nx.getloclist / vim.fn.getloclist]: the location list of window winnr (0 = current window; otherwise an nxvim window id, NOT vim’s 1-based window number). Same return shape as nx.qf.getqflist; an empty list when the window has none.

Defined in vimfn.lua.

nx.qf.setloclist(winnr, list, action, what)

nx.qf.setloclist(winnr, list[, action[, what]]) -> 0 [aliases nx.setloclist / vim.fn.setloclist]: populate the location list of window winnr (0 = current window; otherwise an nxvim window id). Same list/action/what semantics as nx.qf.setqflist, only scoped to a window. Queued server-side like setqflist.

Defined in vimfn.lua.

nx.qf.send_to_loclist(list, opts)

send_to_loclist: results -> a (new) location list. add_to_loclist: append.

Defined in vimfn.lua.

nx.qf.add_to_loclist(list, opts)

No documentation comment in the prelude.

Defined in vimfn.lua.

nx.qf.send_to_qflist(list, opts)

send_to_qflist: results -> the global quickfix list. add_to_qflist: append.

Defined in vimfn.lua.

nx.qf.add_to_qflist(list, opts)

No documentation comment in the prelude.

Defined in vimfn.lua.

nx.qf.list(name, items, opts)

nx.qf.list(name, items[, opts]): create or replace the named list name from items (an array of entry dicts, the same shape setqflist takes), repainting its tab if open. Does NOT open or focus the tab — call nx.qf.show(name) for that. opts.title (string) the list title shown in the dock tab (defaults to name). opts.action (string) “r” (default, replace in place) / “ “ (push a new list onto the stack) / “a” (append to the current list). Returns the name.

Defined in vimfn.lua.

nx.qf.show(name)

nx.qf.show(name): open or focus the named list name’s bottom-dock tab — the clean, window-independent reopen (no set_current / on_next_tick dance; the open is sequenced server-side after any nx.qf.list queued in the same tick). Showing a name with no items yet opens an empty tab. Returns the name.

Defined in vimfn.lua.

nx.qf.drop(name)

nx.qf.drop(name): forget the named list name — close its dock tab if open and remove its contents from the editor. A no-op for a name that was never used.

Defined in vimfn.lua.

nx.qf.open(height)

nx.qf.open([height]) [wraps :copen]: open the quickfix window, optionally height rows tall.

Defined in vimfn.lua.

nx.qf.close()

nx.qf.close() [wraps :cclose]: close the quickfix window.

Defined in vimfn.lua.

nx.qf.next()

nx.qf.next() [wraps :cnext]: jump to the next entry in the quickfix list.

Defined in vimfn.lua.

nx.qf.prev()

nx.qf.prev() [wraps :cprev]: jump to the previous entry in the quickfix list.

Defined in vimfn.lua.

nx.qf.older(count)

nx.qf.older([count]) [wraps :colder]: go to an older quickfix list in the stack (count lists back, default 1).

Defined in vimfn.lua.

nx.qf.newer(count)

nx.qf.newer([count]) [wraps :cnewer]: go to a newer quickfix list in the stack (count lists forward, default 1).

Defined in vimfn.lua.

nx.qf.lopen(height)

The location-list counterparts of the quickfix window / navigation wrappers above — thin wrappers over the :l* ex-commands, acting on the CURRENT window’s location list rather than the global quickfix list. nx.qf.lopen([height]) [wraps :lopen]: open the location-list window, optionally height rows tall.

Defined in vimfn.lua.

nx.qf.lclose()

nx.qf.lclose() [wraps :lclose]: close the location-list window.

Defined in vimfn.lua.

nx.qf.lnext()

nx.qf.lnext() [wraps :lnext]: jump to the next entry in the location list.

Defined in vimfn.lua.

nx.qf.lprev()

nx.qf.lprev() [wraps :lprev]: jump to the previous entry in the location list.

Defined in vimfn.lua.

nx.qf.lolder(count)

nx.qf.lolder([count]) [wraps :lolder]: go to an older location list in the window’s stack (count lists back, default 1).

Defined in vimfn.lua.

nx.qf.lnewer(count)

nx.qf.lnewer([count]) [wraps :lnewer]: go to a newer location list in the window’s stack (count lists forward, default 1).

Defined in vimfn.lua.