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

nx.tbl.is_empty(t)

nx.tbl.is_empty(t) [alias vim.tbl_isempty]: does t have no entries?

Defined in stdlib.lua.

nx.tbl.contains(t, value)

nx.tbl.contains(t, value) [alias vim.tbl_contains]: is value one of t’s values?

Defined in stdlib.lua.

nx.tbl.keys(t)

nx.tbl.keys(t) [alias vim.tbl_keys]: a list of t’s keys.

Defined in stdlib.lua.

nx.tbl.values(t)

nx.tbl.values(t) [alias vim.tbl_values]: a list of t’s values.

Defined in stdlib.lua.

nx.tbl.count(t)

nx.tbl.count(t) [alias vim.tbl_count]: number of entries in t (any keys, not just the sequence).

Defined in stdlib.lua.

nx.tbl.deep_equal(a, b)

nx.tbl.deep_equal(a, b) [alias vim.deep_equal]: structural equality (recurses into tables, comparing keys and values). A general config/plugin helper.

Defined in stdlib.lua.

nx.tbl.get(o, ...)

nx.tbl.get(o, …) [alias vim.tbl_get]: follow the ... keys into nested table o, returning the value reached or nil if any step is missing (or hits a non-table before the last key). The safe nested access lsp/<server>.lua configs use to read deep settings (e.g. rust_analyzer’s settings['rust-analyzer'].cargo.sysrootSrc).

Defined in stdlib.lua.

nx.tbl.filter(f, t)

nx.tbl.filter(f, t) [alias vim.tbl_filter]: Iterates with pairs (not ipairs) to match neovim: callers filter name-keyed maps too (a plugin manager filters its plugin set, keyed by plugin name), not just arrays. The result is always a fresh array.

Defined in stdlib.lua.

nx.tbl.map(f, t)

nx.tbl.map(f, t) [alias vim.tbl_map]: apply f to each value, keeping keys.

Defined in stdlib.lua.

nx.tbl.flatten(t)

nx.tbl.flatten(t) [alias vim.tbl_flatten]: a single list with every nested list flattened into it (depth-first). Deprecated in neovim but still called by lspconfig.util.

Defined in stdlib.lua.

nx.tbl.deepcopy(orig)

nx.tbl.deepcopy(orig) [alias vim.deepcopy]: a recursive copy of orig (metatables preserved).

Defined in stdlib.lua.

nx.tbl.deep_extend(behavior, ...)

nx.tbl.deep_extend(behavior, …) [alias vim.tbl_deep_extend]: Merge ... maps into one. behavior is “force” | “keep” | “error”. Nested tables merge recursively; scalar conflicts resolve per behavior.

Defined in stdlib.lua.

nx.tbl.extend(behavior, ...)

nx.tbl.extend(behavior, …) [alias vim.tbl_extend]: Shallow variant of nx.tbl.deep_extend.

Defined in stdlib.lua.

nx.tbl.spairs(t)

nx.tbl.spairs(t) [alias vim.spairs]: pairs() in sorted-key order. Neovim’s stable-iteration helper — a custom 'tabline'/str_join uses it so output order is deterministic.

Defined in stdlib.lua.