From 44bb06bc123f2c90acbe79035cb19a8e89674d7d Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 30 Apr 2025 18:11:16 +0200 Subject: chore: remove lockfile and update script `main` branch and `parsers.lua` is the record of truth now --- scripts/convert-lockfile.lua | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 scripts/convert-lockfile.lua (limited to 'scripts') 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]] - -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) -- cgit v1.2.3-70-g09d2