feat(install)!: bump minimum tree-sitter version to 0.24

This commit is contained in:
Christian Clason 2024-10-06 12:02:32 +02:00
parent c5a8c9d01a
commit a2841d29d7
4 changed files with 26 additions and 27 deletions

View file

@ -27,9 +27,9 @@ The `nvim-treesitter` plugin provides
## Requirements ## Requirements
- Neovim 0.10.0 or later (nightly) - Neovim 0.11.0 or later (nightly)
- `tar` and `curl` in your path (or alternatively `git`) - `tar` and `curl` in your path (or alternatively `git`)
- [`tree-sitter`](https://github.com/tree-sitter/tree-sitter) CLI (0.22.6 or later) - [`tree-sitter`](https://github.com/tree-sitter/tree-sitter) CLI (0.24.0 or later)
- a C compiler in your path (see <https://docs.rs/cc/latest/cc/#compile-time-requirements>) - a C compiler in your path (see <https://docs.rs/cc/latest/cc/#compile-time-requirements>)
## Installation ## Installation

View file

@ -7,7 +7,7 @@ local health = vim.health
local M = {} local M = {}
local NVIM_TREESITTER_MINIMUM_ABI = 13 local NVIM_TREESITTER_MINIMUM_ABI = 13
local TREE_SITTER_MIN_VER = { 0, 22, 6 } local TREE_SITTER_MIN_VER = { 0, 25, 1 }
---@param name string ---@param name string
---@return table? ---@return table?
@ -24,7 +24,7 @@ local function install_health()
health.start('Requirements') health.start('Requirements')
do -- nvim check do -- nvim check
if vim.fn.has('nvim-0.10') ~= 1 then if vim.fn.has('nvim-0.11') ~= 1 then
health.error('Nvim-treesitter requires the latest Neovim nightly') health.error('Nvim-treesitter requires the latest Neovim nightly')
end end

View file

@ -145,7 +145,6 @@ local function do_generate(logger, repo, compile_location)
local r = system({ local r = system({
'tree-sitter', 'tree-sitter',
'generate', 'generate',
'--no-bindings',
'--abi', '--abi',
tostring(vim.treesitter.language_version), tostring(vim.treesitter.language_version),
repo.generate_from_json and 'src/grammar.json', repo.generate_from_json and 'src/grammar.json',

View file

@ -29,7 +29,7 @@ return {
apex = { apex = {
install_info = { install_info = {
location = 'apex', location = 'apex',
revision = '779684231107cef4d86ac16f74320e9324680da3', revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074',
url = 'https://github.com/aheber/tree-sitter-sfapex', url = 'https://github.com/aheber/tree-sitter-sfapex',
}, },
maintainers = { '@aheber', '@xixiafinland' }, maintainers = { '@aheber', '@xixiafinland' },
@ -225,7 +225,7 @@ return {
}, },
cmake = { cmake = {
install_info = { install_info = {
revision = '69d7a8b0f7493b0dbb07d54e8fea96c5421e8a71', revision = 'f2569dd1fce0f252097a25bcbcb9ed8898840310',
url = 'https://github.com/uyha/tree-sitter-cmake', url = 'https://github.com/uyha/tree-sitter-cmake',
}, },
maintainers = { '@uyha' }, maintainers = { '@uyha' },
@ -447,7 +447,7 @@ return {
}, },
editorconfig = { editorconfig = {
install_info = { install_info = {
revision = 'a761198025448c77ea11bcf22505b395a77fc0d0', revision = 'efbe0b2f2eaa248e8c657a80a8c2305056bda477',
url = 'https://github.com/ValdezFOmar/tree-sitter-editorconfig', url = 'https://github.com/ValdezFOmar/tree-sitter-editorconfig',
}, },
maintainers = { '@ValdezFOmar' }, maintainers = { '@ValdezFOmar' },
@ -1215,7 +1215,7 @@ return {
}, },
kotlin = { kotlin = {
install_info = { install_info = {
revision = 'ec985672ff21f7fd7f835869d8021e8f87304bb4', revision = '76f53c48d29e8588934fb55b0240d7bdfe00bfe5',
url = 'https://github.com/fwcd/tree-sitter-kotlin', url = 'https://github.com/fwcd/tree-sitter-kotlin',
}, },
maintainers = { '@SalBakraa' }, maintainers = { '@SalBakraa' },
@ -1296,7 +1296,7 @@ return {
}, },
llvm = { llvm = {
install_info = { install_info = {
revision = '1b96e58faf558ce057d4dc664b904528aee743cb', revision = 'c14cb839003348692158b845db9edda201374548',
url = 'https://github.com/benwilliamgraham/tree-sitter-llvm', url = 'https://github.com/benwilliamgraham/tree-sitter-llvm',
}, },
maintainers = { '@benwilliamgraham' }, maintainers = { '@benwilliamgraham' },
@ -1399,7 +1399,7 @@ return {
}, },
meson = { meson = {
install_info = { install_info = {
revision = 'bd17c824196ce70800f64ad39cfddd1b17acc13f', revision = 'c5fffb8edd39f22644084ab3f73a924a75721ee3',
url = 'https://github.com/tree-sitter-grammars/tree-sitter-meson', url = 'https://github.com/tree-sitter-grammars/tree-sitter-meson',
}, },
maintainers = { '@Decodetalkers' }, maintainers = { '@Decodetalkers' },
@ -1408,7 +1408,7 @@ return {
mlir = { mlir = {
install_info = { install_info = {
generate = true, generate = true,
revision = '5da32586f41659cc566d6f8145f9aaff3b842c96', revision = '0238b7fb6a630f77b3fc8b8a48285ef6ed45cbcc',
url = 'https://github.com/artagnon/tree-sitter-mlir', url = 'https://github.com/artagnon/tree-sitter-mlir',
}, },
maintainers = { '@artagnon' }, maintainers = { '@artagnon' },
@ -1472,7 +1472,7 @@ return {
}, },
nix = { nix = {
install_info = { install_info = {
revision = '8be0e516904650a868639aa8d3923ebe84f62627', revision = '456b14a2fa6315abc7e02fcffaf4a1f35d4955d3',
url = 'https://github.com/cstrahan/tree-sitter-nix', url = 'https://github.com/cstrahan/tree-sitter-nix',
}, },
maintainers = { '@leo60228' }, maintainers = { '@leo60228' },
@ -1577,7 +1577,7 @@ return {
install_info = { install_info = {
branch = 'release', branch = 'release',
generate_from_json = true, generate_from_json = true,
revision = '81c57e274c541c30d6c204c8dbceb90ec647ed8d', revision = '76ab9a52b9dd2a1758aae3da8286519d995037e9',
url = 'https://github.com/tree-sitter-perl/tree-sitter-perl', url = 'https://github.com/tree-sitter-perl/tree-sitter-perl',
}, },
maintainers = { '@RabbiVeesh', '@LeoNerd' }, maintainers = { '@RabbiVeesh', '@LeoNerd' },
@ -1607,7 +1607,7 @@ return {
phpdoc = { phpdoc = {
install_info = { install_info = {
generate_from_json = true, generate_from_json = true,
revision = 'df5e7da4b83da072f99135079ac3436550b8d67d', revision = 'fe3202e468bc17332bec8969f2b50ff1f1da3a46',
url = 'https://github.com/claytonrcarter/tree-sitter-phpdoc', url = 'https://github.com/claytonrcarter/tree-sitter-phpdoc',
}, },
maintainers = { '@mikehaertl' }, maintainers = { '@mikehaertl' },
@ -1615,7 +1615,7 @@ return {
}, },
pioasm = { pioasm = {
install_info = { install_info = {
revision = '924aadaf5dea2a6074d72027b064f939acf32e20', revision = 'afece58efdb30440bddd151ef1347fa8d6f744a9',
url = 'https://github.com/leo60228/tree-sitter-pioasm', url = 'https://github.com/leo60228/tree-sitter-pioasm',
}, },
maintainers = { '@leo60228' }, maintainers = { '@leo60228' },
@ -2025,7 +2025,7 @@ return {
sflog = { sflog = {
install_info = { install_info = {
location = 'sflog', location = 'sflog',
revision = '779684231107cef4d86ac16f74320e9324680da3', revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074',
url = 'https://github.com/aheber/tree-sitter-sfapex', url = 'https://github.com/aheber/tree-sitter-sfapex',
}, },
maintainers = { '@aheber', '@xixiaofinland' }, maintainers = { '@aheber', '@xixiaofinland' },
@ -2094,7 +2094,7 @@ return {
soql = { soql = {
install_info = { install_info = {
location = 'soql', location = 'soql',
revision = '779684231107cef4d86ac16f74320e9324680da3', revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074',
url = 'https://github.com/aheber/tree-sitter-sfapex', url = 'https://github.com/aheber/tree-sitter-sfapex',
}, },
maintainers = { '@aheber', '@xixiafinland' }, maintainers = { '@aheber', '@xixiafinland' },
@ -2103,7 +2103,7 @@ return {
sosl = { sosl = {
install_info = { install_info = {
location = 'sosl', location = 'sosl',
revision = '779684231107cef4d86ac16f74320e9324680da3', revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074',
url = 'https://github.com/aheber/tree-sitter-sfapex', url = 'https://github.com/aheber/tree-sitter-sfapex',
}, },
maintainers = { '@aheber', '@xixiafinland' }, maintainers = { '@aheber', '@xixiafinland' },
@ -2189,7 +2189,7 @@ return {
superhtml = { superhtml = {
install_info = { install_info = {
location = 'tree-sitter-superhtml', location = 'tree-sitter-superhtml',
revision = '3edb67236291d45ba97a79cdac3b91692487a352', revision = '36f37aa5aa440805f27d4a9f5203e616a303c6a1',
url = 'https://github.com/kristoff-it/superhtml', url = 'https://github.com/kristoff-it/superhtml',
}, },
maintainers = { '@rockorager' }, maintainers = { '@rockorager' },
@ -2224,7 +2224,7 @@ return {
swift = { swift = {
install_info = { install_info = {
generate = true, generate = true,
revision = '4bff50b78b4d3c0517e4d0f0a344aca165f00146', revision = 'a6ec57ad4d12c68d952ba1f869bd373a7ac95832',
url = 'https://github.com/alex-pinkus/tree-sitter-swift', url = 'https://github.com/alex-pinkus/tree-sitter-swift',
}, },
maintainers = { '@alex-pinkus' }, maintainers = { '@alex-pinkus' },
@ -2264,7 +2264,7 @@ return {
}, },
tact = { tact = {
install_info = { install_info = {
revision = '09c57b6b9759560b4d067e0546c9953ee0e065da', revision = '83e264928fa194b7283428527259e88e54205264',
url = 'https://github.com/tact-lang/tree-sitter-tact', url = 'https://github.com/tact-lang/tree-sitter-tact',
}, },
maintainers = { '@novusnota' }, maintainers = { '@novusnota' },
@ -2289,7 +2289,7 @@ return {
teal = { teal = {
install_info = { install_info = {
generate = true, generate = true,
revision = '19b02da829d1721a521bf7b802eb80a50bd53aab', revision = '485fbdc00d811b01b2090dff4d0469fd1d0350f5',
url = 'https://github.com/euclidianAce/tree-sitter-teal', url = 'https://github.com/euclidianAce/tree-sitter-teal',
}, },
maintainers = { '@euclidianAce' }, maintainers = { '@euclidianAce' },
@ -2298,7 +2298,7 @@ return {
templ = { templ = {
install_info = { install_info = {
generate_from_json = true, generate_from_json = true,
revision = '80d1a04e6bf3ced1c924bcb05527aa2eaf3f6239', revision = 'e3e894ef9e490c3d36d94a51458ec55480991730',
url = 'https://github.com/vrischmann/tree-sitter-templ', url = 'https://github.com/vrischmann/tree-sitter-templ',
}, },
maintainers = { '@vrischmann' }, maintainers = { '@vrischmann' },
@ -2436,7 +2436,7 @@ return {
}, },
typst = { typst = {
install_info = { install_info = {
revision = 'abe60cbed7986ee475d93f816c1be287f220c5d8', revision = '8b8b16ef1b40cbecbe3f754b1c1c966b5a0904fe',
url = 'https://github.com/uben0/tree-sitter-typst', url = 'https://github.com/uben0/tree-sitter-typst',
}, },
maintainers = { '@uben0', '@RaafatTurki' }, maintainers = { '@uben0', '@RaafatTurki' },
@ -2486,7 +2486,7 @@ return {
v = { v = {
install_info = { install_info = {
location = 'tree_sitter_v', location = 'tree_sitter_v',
revision = 'bc5b3caa85f7a8d4597f51aeaf92b83162ed6b33', revision = 'ea538758a1273b59774dc9179cde460d9c73fd89',
url = 'https://github.com/vlang/v-analyzer', url = 'https://github.com/vlang/v-analyzer',
}, },
maintainers = { '@kkharji', '@amaanq' }, maintainers = { '@kkharji', '@amaanq' },
@ -2518,7 +2518,7 @@ return {
}, },
vhdl = { vhdl = {
install_info = { install_info = {
revision = '3f13cd14952b39ccf6817f58880834b84565ca54', revision = 'd6e8301999336b47d663052d43f983c3edeb01dd',
url = 'https://github.com/jpt13653903/tree-sitter-vhdl', url = 'https://github.com/jpt13653903/tree-sitter-vhdl',
}, },
maintainers = { '@jpt13653903' }, maintainers = { '@jpt13653903' },