diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-10-06 12:02:32 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | a2841d29d73db53e4d9767e012ddd5da39898a42 (patch) | |
| tree | e3f151d5de04ac5adfa3af436c424cb94eb0dddb | |
| parent | ci(tests): add optional workflow for generating grammars (diff) | |
| download | nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar.gz nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar.bz2 nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar.lz nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar.xz nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.tar.zst nvim-treesitter-a2841d29d73db53e4d9767e012ddd5da39898a42.zip | |
feat(install)!: bump minimum tree-sitter version to 0.24
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | lua/nvim-treesitter/health.lua | 4 | ||||
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 1 | ||||
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 44 |
4 files changed, 26 insertions, 27 deletions
@@ -27,9 +27,9 @@ The `nvim-treesitter` plugin provides ## Requirements -- Neovim 0.10.0 or later (nightly) +- Neovim 0.11.0 or later (nightly) - `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>) ## Installation diff --git a/lua/nvim-treesitter/health.lua b/lua/nvim-treesitter/health.lua index 30c3345d3..1776cffe7 100644 --- a/lua/nvim-treesitter/health.lua +++ b/lua/nvim-treesitter/health.lua @@ -7,7 +7,7 @@ local health = vim.health local M = {} 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 ---@return table? @@ -24,7 +24,7 @@ local function install_health() health.start('Requirements') 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') end diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 07be39d6d..4e0c4485f 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -145,7 +145,6 @@ local function do_generate(logger, repo, compile_location) local r = system({ 'tree-sitter', 'generate', - '--no-bindings', '--abi', tostring(vim.treesitter.language_version), repo.generate_from_json and 'src/grammar.json', diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 48f86b11a..002469356 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -29,7 +29,7 @@ return { apex = { install_info = { location = 'apex', - revision = '779684231107cef4d86ac16f74320e9324680da3', + revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074', url = 'https://github.com/aheber/tree-sitter-sfapex', }, maintainers = { '@aheber', '@xixiafinland' }, @@ -225,7 +225,7 @@ return { }, cmake = { install_info = { - revision = '69d7a8b0f7493b0dbb07d54e8fea96c5421e8a71', + revision = 'f2569dd1fce0f252097a25bcbcb9ed8898840310', url = 'https://github.com/uyha/tree-sitter-cmake', }, maintainers = { '@uyha' }, @@ -447,7 +447,7 @@ return { }, editorconfig = { install_info = { - revision = 'a761198025448c77ea11bcf22505b395a77fc0d0', + revision = 'efbe0b2f2eaa248e8c657a80a8c2305056bda477', url = 'https://github.com/ValdezFOmar/tree-sitter-editorconfig', }, maintainers = { '@ValdezFOmar' }, @@ -1215,7 +1215,7 @@ return { }, kotlin = { install_info = { - revision = 'ec985672ff21f7fd7f835869d8021e8f87304bb4', + revision = '76f53c48d29e8588934fb55b0240d7bdfe00bfe5', url = 'https://github.com/fwcd/tree-sitter-kotlin', }, maintainers = { '@SalBakraa' }, @@ -1296,7 +1296,7 @@ return { }, llvm = { install_info = { - revision = '1b96e58faf558ce057d4dc664b904528aee743cb', + revision = 'c14cb839003348692158b845db9edda201374548', url = 'https://github.com/benwilliamgraham/tree-sitter-llvm', }, maintainers = { '@benwilliamgraham' }, @@ -1399,7 +1399,7 @@ return { }, meson = { install_info = { - revision = 'bd17c824196ce70800f64ad39cfddd1b17acc13f', + revision = 'c5fffb8edd39f22644084ab3f73a924a75721ee3', url = 'https://github.com/tree-sitter-grammars/tree-sitter-meson', }, maintainers = { '@Decodetalkers' }, @@ -1408,7 +1408,7 @@ return { mlir = { install_info = { generate = true, - revision = '5da32586f41659cc566d6f8145f9aaff3b842c96', + revision = '0238b7fb6a630f77b3fc8b8a48285ef6ed45cbcc', url = 'https://github.com/artagnon/tree-sitter-mlir', }, maintainers = { '@artagnon' }, @@ -1472,7 +1472,7 @@ return { }, nix = { install_info = { - revision = '8be0e516904650a868639aa8d3923ebe84f62627', + revision = '456b14a2fa6315abc7e02fcffaf4a1f35d4955d3', url = 'https://github.com/cstrahan/tree-sitter-nix', }, maintainers = { '@leo60228' }, @@ -1577,7 +1577,7 @@ return { install_info = { branch = 'release', generate_from_json = true, - revision = '81c57e274c541c30d6c204c8dbceb90ec647ed8d', + revision = '76ab9a52b9dd2a1758aae3da8286519d995037e9', url = 'https://github.com/tree-sitter-perl/tree-sitter-perl', }, maintainers = { '@RabbiVeesh', '@LeoNerd' }, @@ -1607,7 +1607,7 @@ return { phpdoc = { install_info = { generate_from_json = true, - revision = 'df5e7da4b83da072f99135079ac3436550b8d67d', + revision = 'fe3202e468bc17332bec8969f2b50ff1f1da3a46', url = 'https://github.com/claytonrcarter/tree-sitter-phpdoc', }, maintainers = { '@mikehaertl' }, @@ -1615,7 +1615,7 @@ return { }, pioasm = { install_info = { - revision = '924aadaf5dea2a6074d72027b064f939acf32e20', + revision = 'afece58efdb30440bddd151ef1347fa8d6f744a9', url = 'https://github.com/leo60228/tree-sitter-pioasm', }, maintainers = { '@leo60228' }, @@ -2025,7 +2025,7 @@ return { sflog = { install_info = { location = 'sflog', - revision = '779684231107cef4d86ac16f74320e9324680da3', + revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074', url = 'https://github.com/aheber/tree-sitter-sfapex', }, maintainers = { '@aheber', '@xixiaofinland' }, @@ -2094,7 +2094,7 @@ return { soql = { install_info = { location = 'soql', - revision = '779684231107cef4d86ac16f74320e9324680da3', + revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074', url = 'https://github.com/aheber/tree-sitter-sfapex', }, maintainers = { '@aheber', '@xixiafinland' }, @@ -2103,7 +2103,7 @@ return { sosl = { install_info = { location = 'sosl', - revision = '779684231107cef4d86ac16f74320e9324680da3', + revision = '46d4a12e4e90b10a575b7b16ea3b6ead50322074', url = 'https://github.com/aheber/tree-sitter-sfapex', }, maintainers = { '@aheber', '@xixiafinland' }, @@ -2189,7 +2189,7 @@ return { superhtml = { install_info = { location = 'tree-sitter-superhtml', - revision = '3edb67236291d45ba97a79cdac3b91692487a352', + revision = '36f37aa5aa440805f27d4a9f5203e616a303c6a1', url = 'https://github.com/kristoff-it/superhtml', }, maintainers = { '@rockorager' }, @@ -2224,7 +2224,7 @@ return { swift = { install_info = { generate = true, - revision = '4bff50b78b4d3c0517e4d0f0a344aca165f00146', + revision = 'a6ec57ad4d12c68d952ba1f869bd373a7ac95832', url = 'https://github.com/alex-pinkus/tree-sitter-swift', }, maintainers = { '@alex-pinkus' }, @@ -2264,7 +2264,7 @@ return { }, tact = { install_info = { - revision = '09c57b6b9759560b4d067e0546c9953ee0e065da', + revision = '83e264928fa194b7283428527259e88e54205264', url = 'https://github.com/tact-lang/tree-sitter-tact', }, maintainers = { '@novusnota' }, @@ -2289,7 +2289,7 @@ return { teal = { install_info = { generate = true, - revision = '19b02da829d1721a521bf7b802eb80a50bd53aab', + revision = '485fbdc00d811b01b2090dff4d0469fd1d0350f5', url = 'https://github.com/euclidianAce/tree-sitter-teal', }, maintainers = { '@euclidianAce' }, @@ -2298,7 +2298,7 @@ return { templ = { install_info = { generate_from_json = true, - revision = '80d1a04e6bf3ced1c924bcb05527aa2eaf3f6239', + revision = 'e3e894ef9e490c3d36d94a51458ec55480991730', url = 'https://github.com/vrischmann/tree-sitter-templ', }, maintainers = { '@vrischmann' }, @@ -2436,7 +2436,7 @@ return { }, typst = { install_info = { - revision = 'abe60cbed7986ee475d93f816c1be287f220c5d8', + revision = '8b8b16ef1b40cbecbe3f754b1c1c966b5a0904fe', url = 'https://github.com/uben0/tree-sitter-typst', }, maintainers = { '@uben0', '@RaafatTurki' }, @@ -2486,7 +2486,7 @@ return { v = { install_info = { location = 'tree_sitter_v', - revision = 'bc5b3caa85f7a8d4597f51aeaf92b83162ed6b33', + revision = 'ea538758a1273b59774dc9179cde460d9c73fd89', url = 'https://github.com/vlang/v-analyzer', }, maintainers = { '@kkharji', '@amaanq' }, @@ -2518,7 +2518,7 @@ return { }, vhdl = { install_info = { - revision = '3f13cd14952b39ccf6817f58880834b84565ca54', + revision = 'd6e8301999336b47d663052d43f983c3edeb01dd', url = 'https://github.com/jpt13653903/tree-sitter-vhdl', }, maintainers = { '@jpt13653903' }, |
