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.
This commit is contained in:
Christian Clason 2024-04-14 16:25:28 +02:00
parent 054080bf59
commit c17de56890
21 changed files with 1007 additions and 995 deletions

View file

@ -11,7 +11,7 @@ local function complete_available_parsers(arglead)
function(v)
return v:find(arglead) ~= nil
end,
require('nvim-treesitter.parsers').get_available()
require('nvim-treesitter.config').get_available()
)
end