From 458e46141b294340493f33e2a61f64ff2ba77f82 Mon Sep 17 00:00:00 2001 From: vdbewout Date: Thu, 23 May 2024 19:28:17 +0000 Subject: [PATCH] feat(tree-sitter): remove default grammars --- nix/pkgs/neovim/default.nix | 2 +- nix/sources/grammars/sources.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/neovim/default.nix b/nix/pkgs/neovim/default.nix index 3f95032..f8c15f2 100644 --- a/nix/pkgs/neovim/default.nix +++ b/nix/pkgs/neovim/default.nix @@ -49,8 +49,8 @@ ]; }; - # FIX: DOn't rebuild everything for this neovim-unwrapped' = neovim-unwrapped.overrideAttrs (_: previousAttrs: { + treesitter-parsers = {}; preConfigure = previousAttrs.preConfigure or "" diff --git a/nix/sources/grammars/sources.json b/nix/sources/grammars/sources.json index 65a70b4..167efa8 100644 --- a/nix/sources/grammars/sources.json +++ b/nix/sources/grammars/sources.json @@ -15,6 +15,21 @@ "url": "https://api.github.com/repos/tree-sitter/tree-sitter-c/tarball/v0.21.1", "hash": "0sycp85pl0yr3d35fj17p1kbz8j3xj04ql35xmmd78f9592s0862" }, + "tree-sitter-query": { + "type": "GitRelease", + "repository": { + "type": "GitHub", + "owner": "tree-sitter-grammars", + "repo": "tree-sitter-query" + }, + "pre_releases": false, + "version_upper_bound": null, + "release_prefix": null, + "version": "v0.3.0", + "revision": "d1b0b34c177d93cd17f85e964568dfdad90e05e0", + "url": "https://api.github.com/repos/tree-sitter-grammars/tree-sitter-query/tarball/v0.3.0", + "hash": "191h311g14aah7wpibpyhpz925506c3l6qyrfra1kd8pjn1nv2vk" + }, "tree-sitter-rust": { "type": "GitRelease", "repository": {