From ab3a68fe1ad37efdc559a331ebf02cc48c60af37 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 10 Jan 2025 11:21:51 +0300 Subject: [PATCH] lib: remove `toVimBool` --- lib/languages.nix | 7 ------- modules/wrapper/rc/options.nix | 2 -- 2 files changed, 9 deletions(-) diff --git a/lib/languages.nix b/lib/languages.nix index 56c225d6..a202ff14 100644 --- a/lib/languages.nix +++ b/lib/languages.nix @@ -5,13 +5,6 @@ inherit (lib.types) bool; inherit (lib.nvim.attrsets) mapListToAttrs; in { - # Converts a boolean to a yes/no string. This is used in lots of - # configuration formats, and is not covered by `toLuaObject` - toVimBool = bool: - if bool - then "yes" - else "no"; - diagnosticsToLua = { lang, config, diff --git a/modules/wrapper/rc/options.nix b/modules/wrapper/rc/options.nix index 21d0e26e..4cd3026f 100644 --- a/modules/wrapper/rc/options.nix +++ b/modules/wrapper/rc/options.nix @@ -6,8 +6,6 @@ inherit (lib.options) mkOption literalMD literalExpression; inherit (lib.strings) optionalString; inherit (lib.types) str bool int enum attrsOf lines listOf either path submodule anything; - inherit (lib.trivial) isBool; - inherit (lib.nvim.languages) toVimBool; inherit (lib.nvim.types) dagOf; inherit (lib.nvim.lua) listToLuaTable;