diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-10 17:12:35 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | bae77b87b1262ff101b06f9a8de0b2049edcefa1 (patch) | |
| tree | df9878be014f2a1ea9a263be30926ed62a06368f /scripts/update-lockfile.lua | |
| parent | feat!: drop makefile support, norg parser (diff) | |
| download | nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar.gz nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar.bz2 nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar.lz nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar.xz nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.tar.zst nvim-treesitter-bae77b87b1262ff101b06f9a8de0b2049edcefa1.zip | |
feat: add parser tiers
Tier 1: Stable
Tier 2: Core (maintained by org members)
Tier 3: Community (maintained by external contributors, to varying
degree)
Tier 4: Unsupported (lacking active maintainer or declared
experimental); skipped in lockfile update and ignored for automatic
install by default
Diffstat (limited to 'scripts/update-lockfile.lua')
| -rwxr-xr-x | scripts/update-lockfile.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/update-lockfile.lua b/scripts/update-lockfile.lua index e07cf416f..0c9288b6a 100755 --- a/scripts/update-lockfile.lua +++ b/scripts/update-lockfile.lua @@ -4,7 +4,7 @@ local util = require('nvim-treesitter.util') -- Load previous lockfile local filename = require('nvim-treesitter.install').get_package_path('lockfile.json') --- local old_lockfile = vim.json.decode(util.read_file(filename)) --[[@as table<string,{revision:string}>]] +local old_lockfile = vim.json.decode(util.read_file(filename)) --[[@as table<string,{revision:string}>]] ---@type table<string,{revision:string}> local new_lockfile = {} @@ -15,9 +15,10 @@ local jobs = {} --- @type table<string,SystemObj> -- check for new revisions for k, p in pairs(parsers) do - if not p.install_info then + if p.tier == 4 then + new_lockfile[k] = old_lockfile[k] print('Skipping ' .. k) - else + elseif p.install_info then jobs[k] = vim.system({ 'git', 'ls-remote', p.install_info.url }) end |
