mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-10 07:00:00 +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
|
||||
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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue