lazy-purifier full guide
Detailed setup, dependency management, build commands, and troubleshooting. Start with the overview for the initial commands; use the sections below for the complete setup and behavior. lazy-purifier is classified at maturity tier 4 (see tier assessment for details).
Contents
- Setup and activation
- Version compatibility
- Development loop
- Working offline
- Language tooling integration
- Nix builds
- Project projections
- Supported scope
Setup and activation
Use lazy.nvim with Git plugins resolved and locked by Nix.
For an existing Neovim configuration using lazy.nvim:
Use the overview’s Quickstart for the initial command sequence. The setup details below apply to that workflow.
Version compatibility
| Tool or language | Packaged defaults | Tested versions |
|---|---|---|
| lazy.nvim | 11.17.5 | — |
| Neovim | 0.12.6 | — |
Operating systems and architectures
| OS | CPU architecture | Packaged toolchain | Recorded workflow |
|---|---|---|---|
| Linux | ARM64 | Yes | Not recorded |
| Linux | x86-64 | Yes | Tested |
Development loop
Commit the native lazy-lock.json and lazy-purifier.lock.json in your Neovim
configuration repository. The first lock command uses lazy.nvim’s own resolver
in a private cache. Nix verifies the selected Git sources; a fresh Neovim process
loads those sources before either lockfile is replaced.
lazy-purifier lock --update
lazy-purifier prefetch
nvim --headless '+lua print(vim.version().major)' +qa
Configuration settings remain editable. The integration checks lazy.nvim’s
native parsed dependency selection before plugin activation, so changing an
unrelated setting does not require relocking. Changed plugin URLs or version
selection require a lock update. :Lazy log, loading, help and normal editor
commands work; operations that mutate plugin installations require
lazy-purifier lock --update.
Working offline
SDK profiles and Nix GC roots live below $XDG_CACHE_HOME/lazy-purifier.
Editor caches, plugin state and bootstrap links are private; existing plugin
checkouts are preserved. Root commands retain networking.
Language tooling integration
This integration requires the Neovim wrapper. It supplies the pinned lazy.nvim
manager, readonly plugin sources, and private writable caches and state. The
usual stdpath("data") .. "/lazy/lazy.nvim" bootstrap works with this setup.
Without a companion lock, the wrapper warns and runs ordinary, impure Neovim.
Install it using your usual installation method if you want it available beyond
nix shell.
By default the integration uses the native Neovim configuration directory and
NVIM_APPNAME. Use --project PATH for another configuration with init.lua;
set LAZY_PURIFIER_PROJECT when launching its editor. --lock and --native-lock
accept external companion and native lockfiles. The corresponding environment
variables are LAZY_PURIFIER_LOCK and LAZY_PURIFIER_NATIVE_LOCK.
Nix builds
The overlay provides buildLazyProject with src, nvimArgs, doCheck, and
checkCommand. It starts native headless Neovim against the Nix plugin tree.
Pass commands without a final quit command; the builder checks errors and quits.
Project projections
This integration provides native release artifacts, rather than a typed cross-purifier project projection interface. The publication workflow below uses those native artifacts.
The builder exposes packages, tests, release, and fetches, with known
output names available without import-from-derivation. Its release is a native
Neovim configuration source archive. lazy-purifier bundle builds the archive;
publish --tag TAG uploads the exact archive to an existing GitHub release.
Supported scope
Scope
The initial implementation supports public HTTPS Git plugins with Lua-only
profiles on Linux x86-64 and ARM64. Local plugins, build hooks, automatic build
scripts, Git submodules and rockspec dependencies need additional providers.
Rocks are disabled in this integration. Conditional profiles must select the
same dependencies when locked and launched. Project-local .lazy.lua additions
are subject to the same native selection check.
The manager is part of the Nix SDK. Git history and tags beyond the locked plugin commit are not delivered. Other plugin managers and external language servers are outside this lock’s scope.
Target systems
- x86_64-linux
- aarch64-linux