mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 06:55:30 +00:00
treewide: warn deprecation in singleOrListOf
This commit is contained in:
parent
f52efefaf7
commit
130f617551
40 changed files with 108 additions and 98 deletions
|
|
@ -11,7 +11,7 @@
|
|||
inherit (lib.meta) getExe;
|
||||
inherit (lib.types) enum coercedTo;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
inherit (lib.nvim.types) mkGrammarOption diagnostics singleOrListOf;
|
||||
inherit (lib.nvim.types) mkGrammarOption diagnostics deprecatedSingleOrListOf;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
|
||||
cfg = config.vim.languages.astro;
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
};
|
||||
|
||||
formatType =
|
||||
singleOrListOf
|
||||
deprecatedSingleOrListOf
|
||||
"vim.languages.astro.format.type"
|
||||
(coercedTo (enum ["prettierd"]) (_:
|
||||
lib.warn
|
||||
|
|
@ -97,7 +97,7 @@ in {
|
|||
lsp = {
|
||||
enable = mkEnableOption "Astro LSP support" // {default = config.vim.lsp.enable;};
|
||||
servers = mkOption {
|
||||
type = singleOrListOf "vim.languages.astro.lsp.servers" (enum (attrNames servers));
|
||||
type = deprecatedSingleOrListOf "vim.language.astro.lsp.servers" (enum (attrNames servers));
|
||||
default = defaultServers;
|
||||
description = "Astro LSP server to use";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue