aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-04-30 18:11:16 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit44bb06bc123f2c90acbe79035cb19a8e89674d7d (patch)
tree11be796700517a4054ca908bc50c30477080e9e8 /scripts
parentrefactor(lua): fix some luals warnings (diff)
downloadnvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar.gz
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar.bz2
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar.lz
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar.xz
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.tar.zst
nvim-treesitter-44bb06bc123f2c90acbe79035cb19a8e89674d7d.zip
chore: remove lockfile and update script
`main` branch and `parsers.lua` is the record of truth now
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/convert-lockfile.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/convert-lockfile.lua b/scripts/convert-lockfile.lua
deleted file mode 100755
index 5759c0426..000000000
--- a/scripts/convert-lockfile.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env -S nvim -l
-vim.opt.runtimepath:append('.')
-local util = require('nvim-treesitter.util')
-local parsers = require('nvim-treesitter.parsers')
-
-local filename = require('nvim-treesitter.install').get_package_path('lockfile.json')
-local lockfile = vim.json.decode(util.read_file(filename)) --[[@as table<string,{revision:string}>]]
-
-for k, p in pairs(parsers) do
- if p.install_info then
- p.install_info.revision = lockfile[k].revision
- p.install_info.files = nil
- end
-end
-
--- write new parser file
-local header = '---@type nvim-ts.parsers\nreturn '
-local parser_file = header .. vim.inspect(parsers)
-if vim.fn.executable('stylua') == 1 then
- parser_file = vim.system({ 'stylua', '-' }, { stdin = parser_file }):wait().stdout --[[@as string]]
-end
-util.write_file('lua/nvim-treesitter/parsers.lua', parser_file)