nix-community.nixvim/wrappers/modules/hm.nix
Matt Sturgeon cb2b76c1a9
docs/home-manager: eval options without checking config definitions
By default `lib.evalModules` will check all config definitions match
a declared option (or a freeform type), leading to errors like:

    error: The option `wrapRc' does not exist.

Setting `_module.freeformType` or `_module.check` will disable this,
allowing us to evaluate the option declaration without checking the
config definitions.
2024-09-27 02:56:28 +01:00

21 lines
405 B
Nix

{ lib, ... }:
{
options = {
defaultEditor = lib.mkEnableOption "nixvim as the default editor";
vimdiffAlias = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Alias `vimdiff` to `nvim -d`.
'';
};
};
imports = [ ./enable.nix ];
config = {
wrapRc = lib.mkOptionDefault false;
impureRtp = lib.mkOptionDefault true;
};
}