This commit is contained in:
Snoweuph 2026-05-11 22:22:20 +02:00
commit a0f40a0d07
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
8 changed files with 64 additions and 13 deletions

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption literalExpression;
inherit (lib.options) mkOption mkEnableOption literalExpression literalMD;
inherit (lib.types) listOf nullOr package bool str lines enum submodule oneOf attrsOf;
queriesType = submodule {
@ -20,6 +20,26 @@
query = mkOption {
type = lines;
description = "The queries scm script.";
example = literalMD ''
```nix
{
query = '''
;; extends
((apply_expression
function: (variable_expression
name: (identifier) @_func
(#eq? @_func "mkLuaInline"))
argument: (indented_string_expression
(string_fragment) @injection.content)
(#set! injection.language "lua")
(#set! injection.combined)))
''';
}
```
'';
};
};
};