From 14fca449b7dabc94096c0d55dc68b9a7cc511d8f Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Mon, 1 Apr 2024 13:20:07 +0100 Subject: [PATCH] docs: add usage tldr --- docs/user-guide/install.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/install.md b/docs/user-guide/install.md index 22ff2af1..dfba2132 100644 --- a/docs/user-guide/install.md +++ b/docs/user-guide/install.md @@ -40,9 +40,19 @@ When using flakes you can simply add `nixvim` to the inputs: # outputs... } + ``` -## Usage as a module (NixOS, Home-Manager, nix-darwin) +## Usage + +NixVim can be used standalone or as a module for NixOS, home-manager, or nix-darwin. + +When used standalone, a custom NixVim derivation is produced that can be used like any other package. + +When used as a module, NixVim can be enabled though `programs.nixvim.enable`. + + +### Usage as a module (NixOS, home-manager, nix-darwin) When using NixVim as a module you must import the NixVim module into your module system. The three imports are: @@ -60,7 +70,9 @@ options as `programs.nixvim...