neovim-flake/modules/wrapper/lib/config.nix

21 lines
368 B
Nix
Raw Normal View History

{
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;
};
};
}