From 764a6a86665dc0185e0c16235a10b8d4d915e220 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 10 Aug 2023 18:35:28 +0200 Subject: [PATCH] misc: remove deprecated instances of types.string --- plugins/lsp/language-servers/ltex-settings.nix | 2 +- plugins/utils/specs.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/lsp/language-servers/ltex-settings.nix b/plugins/lsp/language-servers/ltex-settings.nix index 1e3a523f..7a927829 100644 --- a/plugins/lsp/language-servers/ltex-settings.nix +++ b/plugins/lsp/language-servers/ltex-settings.nix @@ -574,7 +574,7 @@ in { diagnosticSeverity = helpers.defaultNullOpts.mkNullable - (with types; either string (attrsOf str)) + (with types; either str (attrsOf str)) "information" '' Severity of the diagnostics corresponding to the grammar and spelling errors. diff --git a/plugins/utils/specs.nix b/plugins/utils/specs.nix index 77b179bc..ebfbdc99 100644 --- a/plugins/utils/specs.nix +++ b/plugins/utils/specs.nix @@ -106,12 +106,12 @@ in { }; ignored_filetypes = mkOption { - type = with types; listOf string; + type = with types; listOf str; default = []; }; ignored_buffertypes = mkOption { - type = with types; listOf string; + type = with types; listOf str; default = ["nofile"]; }; };