nvim-treesitter/scripts/write-lockfile.lua

16 lines
417 B
Lua
Raw Normal View History

2023-08-15 20:28:55 +03:00
#!/usr/bin/env -S nvim -l
---@type string|any[]
2021-07-04 16:12:17 -05:00
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
2021-07-04 16:12:17 -05:00
skip_langs = vim.fn.split(skip_langs, ",")
end
2021-07-04 16:12:17 -05:00
print("Skipping languages: " .. vim.inspect(skip_langs))
require("nvim-treesitter.install").write_lockfile("verbose", skip_langs)
vim.cmd "q"