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 configure a runnable .#my-neovim app.

Terminal window
mkdir my-neovim && cd my-neovim
nix flake init -t github:denful/den#nvf-standalone
nix flake update den
nix run .#my-neovim
flake.nix # dependencies including NVF
modules/
den.nix # exposes the standalone neovim package + aspects
nvf-integration.nix # the den.lib.nvf helper: forward class + resolve
header.txt # dashboard header used by the `mine` variant

Key points:

  • Runnable app — exposes .#my-neovim (and .#your-neovim)
  • Custom forward class — a vim class that forwards into nvf.vim
  • Aspect-to-moduleden.lib.aspects.resolve "nvf" aspect turns an aspect tree into a plain NixOS-style module for nvf’s neovimConfiguration.
Contribute Community Sponsor