mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-07 19:01:35 +00:00
treewide: warn deprecation in singleOrListOf
This commit is contained in:
parent
6697e547b4
commit
154d8be4dc
40 changed files with 106 additions and 96 deletions
|
@ -13,7 +13,7 @@
|
|||
inherit (lib.lists) isList;
|
||||
inherit (lib.types) bool package str listOf either enum;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
inherit (lib.nvim.types) mkGrammarOption singleOrListOf;
|
||||
inherit (lib.nvim.types) mkGrammarOption deprecatedSingleOrListOf;
|
||||
inherit (lib.nvim.lua) expToLua;
|
||||
inherit (lib.nvim.dag) entryAfter entryAnywhere;
|
||||
|
||||
|
@ -80,7 +80,7 @@ in {
|
|||
|
||||
type = mkOption {
|
||||
description = "Rust formatter to use";
|
||||
type = singleOrListOf (enum (attrNames formats));
|
||||
type = deprecatedSingleOrListOf "vim.language.rust.format.type" (enum (attrNames formats));
|
||||
default = defaultFormat;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue