treewide: add global flag to disable default keymaps

This commit is contained in:
Ching Pei Yang 2025-07-24 15:41:10 +02:00
commit 9902836a90
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
31 changed files with 170 additions and 165 deletions

View file

@ -1,5 +1,5 @@
{lib, ...}: let
inherit (lib.options) mkOption literalMD;
inherit (lib.options) mkOption literalMD mkEnableOption;
inherit (lib.types) either str listOf attrsOf nullOr submodule;
inherit (lib.nvim.config) mkBool;
@ -57,6 +57,7 @@
};
in {
options.vim = {
enableNvfKeymaps = mkEnableOption "default NVF keymaps for plugins" // {default = true;};
keymaps = mkOption {
type = listOf mapType;
description = "Custom keybindings.";