Skip to content

Template: NVF Standalone

The nvf-standalone template demonstrates how to use Den for other configurations outside NixOS/nix-Darwin/HM. For demo purposes this uses NVF Standalone to confirue a runnable .#my-neovim app.

Terminal window
mkdir my-neovim && cd my-neovim
nix flake init -t github:vic/den#nvf-standalone
nix flake update den
nix run .#my-neovim
flake.nix # dependencies including NVF
modules/
den.nix # uses Den to expose an standalone neovim app.

Key points:

  • Runnable app — exposes .#my-neovim app
  • Custom forward class — uses a vim class that forwards to nvf.config.vim
  • Custom ctx — shows how to use Den with custom context to resolve nvf module.
Contribute Community Sponsor