nvim-treesitter/scripts/write-lockfile.lua
2024-03-12 09:55:48 +02:00

14 lines
360 B
Lua
Executable file

#!/usr/bin/env -S nvim -l
---@type string|any[]
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"
if skip_langs == vim.NIL then
skip_langs = {}
else
---@diagnostic disable-next-line: param-type-mismatch
skip_langs = vim.fn.split(skip_langs, ",")
end
require("nvim-treesitter.install").write_lockfile("verbose", skip_langs)
vim.cmd "q"