mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-23 21:13:28 +00:00
neovim/clipboard: make clipboard.registers an enum to detect typos at eval time
This commit is contained in:
parent
5ab359ee7d
commit
02ea805e4a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue