aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/write-lockfile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/write-lockfile.lua')
-rwxr-xr-xscripts/write-lockfile.lua48
1 files changed, 0 insertions, 48 deletions
diff --git a/scripts/write-lockfile.lua b/scripts/write-lockfile.lua
deleted file mode 100755
index 0b1d0504e..000000000
--- a/scripts/write-lockfile.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env -S nvim -l
-vim.opt.runtimepath:append('.')
-
--- Load previous lockfile
-local filename = require('nvim-treesitter.install').get_package_path('lockfile.json')
-local lockfile = vim.json.decode(require('nvim-treesitter.util').read_file(filename))
-
----@type string?
-local skip_lang_string = os.getenv('SKIP_LOCKFILE_UPDATE_FOR_LANGS')
-local skip_langs = skip_lang_string and vim.split(skip_lang_string, ',') or {}
-vim.print('Skipping languages: ', skip_langs)
-
-local sorted_parsers = {}
-local configs = require('nvim-treesitter.parsers').configs
-for k, v in pairs(configs) do
- table.insert(sorted_parsers, { name = k, parser = v })
-end
-table.sort(sorted_parsers, function(a, b)
- return a.name < b.name
-end)
-
--- check for new revisions
-for _, v in ipairs(sorted_parsers) do
- if skip_langs and not vim.list_contains(skip_langs, v.name) then