summaryrefslogtreecommitdiffstats
path: root/modules/wrapper/lib/config.nix
blob: c2b46f39aee4f90abea1eff4f5ffa0658e47e4f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  config,
  lib,
  ...
}: let
  inherit (lib.options) mkOption;
  inherit (lib.types) nullOr str;
in {
  config.vim.lib = {
    mkMappingOption = description: default:
      mkOption {
        type = nullOr str;
        default =
          if config.vim.vendoredKeymaps.enable
          then default
          else null;
        inherit description;
      };
  };
}