neovim/clipboard: make clipboard.registers an enum to detect typos at eval time

This commit is contained in:
Mike Shaver 2026-04-13 21:04:22 -04:00
commit 02ea805e4a

View file

@ -6,7 +6,7 @@
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
inherit (lib.types) str submodule;
inherit (lib.types) submodule enum;
inherit (lib.attrsets) mapAttrs mapAttrsToList filterAttrs;
cfg = config.vim.clipboard;
in {
@ -20,7 +20,7 @@ in {
'';
registers = mkOption {
type = str;
type = enum ["" "unnamedplus" "unnamed" "unnamed,unnamedplus"];
default = "";
example = "unnamedplus";
description = ''