From 55ed602814d7d4c3167c86a945594edd0cfe190f Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 21 Jan 2023 18:02:16 +0100 Subject: [PATCH] tree-sitter: Switch to using nvim-treesitter grammars (#131) The grammars in the tree-sitter package and nvim-treesitter package are not the same. The grammars in the nvim-treesitter package are directly taken from the grammars supported by the plugin, whereas tree-sitter grammars are hard-coded in nixpkgs. This means that there are more tree-sitter grammars available from nvim-treesitter rather than tree-sitter. --- plugins/languages/treesitter.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/languages/treesitter.nix b/plugins/languages/treesitter.nix index eb3f13c6..7daa8c52 100644 --- a/plugins/languages/treesitter.nix +++ b/plugins/languages/treesitter.nix @@ -81,7 +81,7 @@ in grammarPackages = mkOption { type = with types; listOf package; - default = pkgs.tree-sitter.allGrammars; + default = cfg.package.passthru.allGrammars; description = "Grammar packages to install"; };