From c17de5689045f75c6244462182ae3b4b62df02d9 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 14 Apr 2024 16:25:28 +0200 Subject: feat!: track parser revision in Lua Problem: Tracking parser revision in lockfile and allowing override through the parsers module complicates the code. In addition, only revision changes are handled robustly, not changes to other installation info. Solution: Track parser revision in the parsers module directly. Reload parser table on every install or update call. Support modifying parser table in a `User TSUpdate` autocommand. --- tests/query/injections/nix/test-nix-injections.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/query/injections/nix/test-nix-injections.nix b/tests/query/injections/nix/test-nix-injections.nix index 86e9f975d..477ca4abb 100644 --- a/tests/query/injections/nix/test-nix-injections.nix +++ b/tests/query/injections/nix/test-nix-injections.nix @@ -64,7 +64,7 @@ mod1 = { type = "lua"; config = '' - require('nvim-treesitter.configs').setup() + require('nvim-treesitter.config').setup() ''; }; } -- cgit v1.2.3-70-g09d2