nx.env
nx.env.get(name)
No documentation comment in the prelude.
Defined in state.lua.
nx.env.set(name, value)
nx.env.set(name, value) [alias vim.fn.setenv]: set an environment variable for this session. nxvim can’t mutate the real process environment from Lua, so the value lands in a shadow store getenv/vim.env read back — observable within the editor, which is what a plugin setting e.g. $GIT_DIR before spawning an in-process child expects. A nil/v:null value unsets it.
Defined in state.lua.