neovim/clipboard: make clipboard.registers an enum to detect typos at eval time (#1518)
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

Co-authored-by: Ching Pei Yang <59727193+horriblename@users.noreply.github.com>
This commit is contained in:
Mike Shaver 2026-04-16 05:25:18 -04:00 committed by GitHub
commit 39416a521d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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