wrapper/lib: init with mkMappingOption

mkMappingOption wants to read a setting set in config without passing it
every time, so it should be defined in config.
This commit is contained in:
alfarel 2026-03-14 20:17:19 -04:00
commit 8b5ef2cf08
No known key found for this signature in database
5 changed files with 41 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{lib, ...}: let
inherit (lib.options) mkOption literalMD;
inherit (lib.options) mkEnableOption mkOption literalMD;
inherit (lib.types) either str listOf attrsOf nullOr submodule;
inherit (lib.nvim.config) mkBool;
@ -57,6 +57,8 @@
};
in {
options.vim = {
vendoredKeymaps = mkEnableOption "this project's vendored keymaps by default" // {default = true;};
keymaps = mkOption {
type = listOf mapType;
description = "Custom keybindings.";