1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-14 21:11:09 +01:00

treewide: remove with lib;

This commit is contained in:
Gaetan Lepage 2025-12-07 12:28:40 +01:00 committed by Gaétan Lepage
parent cd0443e166
commit 629f9d75f8
67 changed files with 276 additions and 338 deletions

View file

@ -4,8 +4,15 @@
options,
...
}:
with lib;
let
inherit (lib)
types
mkOption
literalExpression
optionalString
mkIf
mkDefault
;
buildGrammarDeps = [
"gcc"
"nodejs"
@ -334,7 +341,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
extraOptions = {
folding = mkEnableOption "tree-sitter based folding";
folding = lib.mkEnableOption "tree-sitter based folding";
grammarPackages = mkOption {
type = with types; listOf package;
@ -346,7 +353,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
# TODO: Implement rawLua support to be passed into extraConfigLua.
languageRegister = mkOption {
type = with types; attrsOf (coercedTo str toList (listOf str));
type = with types; attrsOf (coercedTo str lib.toList (listOf str));
default = { };
example = {
cpp = "onelab";