treesitter: custom grammars

This commit is contained in:
Pedro Alves 2022-12-01 14:07:08 +00:00
parent 36bc31ed5c
commit 6537e9aa1f
2 changed files with 14 additions and 14 deletions

View file

@ -65,12 +65,12 @@ in
indent = mkEnableOption "Enable tree-sitter based indentation"; indent = mkEnableOption "Enable tree-sitter based indentation";
folding = mkEnableOption "Enable tree-sitter based folding"; folding = mkEnableOption "Enable tree-sitter based folding";
};
grammarPackages = mkOption { grammarPackages = mkOption {
type = with types; listOf package; type = with types; listOf package;
default = pkgs.tree-sitter.allGrammars; default = pkgs.tree-sitter.allGrammars;
description = "Grammar packages to install"; description = "Grammar packages to install";
};
}; };
}; };

18
tests/flake.lock generated
View file

@ -157,11 +157,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1668016843, "lastModified": 1669546925,
"narHash": "sha256-ioBuF+IAhmJO7s4ewEij1LkMxJvCCNCKXxMto/DU02I=", "narHash": "sha256-Gvtk9agz88tBgqmCdHl5U7gYttTkiuEd8/Rq1Im0pTg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "fa842715565307b7e05cdb187b08c05f16ed08f1", "rev": "fecf05d4861f3985e8dee73f08bc82668ef75125",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -208,12 +208,12 @@
}, },
"locked": { "locked": {
"lastModified": 0, "lastModified": 0,
"narHash": "sha256-HWr75pPDcv+OM0BRyQUtIDPJ4W1V1iDzsEVXY6JQz6E=", "narHash": "sha256-x6+KGgpSlPfBvI8YG3hf3lN5FKhJdeLyXDmQdLk34cE=",
"path": "/nix/store/hgr3qr1x8gndpdkaj8cx2xclmd7v20b9-source", "path": "/nix/store/l49ggcslcfsav82lgfb5dzw4a2qajfnp-source",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/hgr3qr1x8gndpdkaj8cx2xclmd7v20b9-source", "path": "/nix/store/l49ggcslcfsav82lgfb5dzw4a2qajfnp-source",
"type": "path" "type": "path"
} }
}, },
@ -228,12 +228,12 @@
}, },
"locked": { "locked": {
"lastModified": 0, "lastModified": 0,
"narHash": "sha256-HWr75pPDcv+OM0BRyQUtIDPJ4W1V1iDzsEVXY6JQz6E=", "narHash": "sha256-x6+KGgpSlPfBvI8YG3hf3lN5FKhJdeLyXDmQdLk34cE=",
"path": "/nix/store/hgr3qr1x8gndpdkaj8cx2xclmd7v20b9-source", "path": "/nix/store/l49ggcslcfsav82lgfb5dzw4a2qajfnp-source",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/hgr3qr1x8gndpdkaj8cx2xclmd7v20b9-source", "path": "/nix/store/l49ggcslcfsav82lgfb5dzw4a2qajfnp-source",
"type": "path" "type": "path"
} }
}, },