mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
11 lines
383 B
Lua
11 lines
383 B
Lua
-- Execute as `nvim --headless -c "luafile ./scripts/write-lockfile.lua"`
|
|
local skip_langs = vim.fn.getenv('SKIP_LOCKFILE_UPDATE_FOR_LANGS')
|
|
if skip_langs == vim.NIL then
|
|
skip_langs = {}
|
|
else
|
|
skip_langs = vim.fn.split(skip_langs, ',')
|
|
end
|
|
print("Skipping languages: "..vim.inspect(skip_langs))
|
|
require 'nvim-treesitter.install'.write_lockfile('verbose', skip_langs)
|
|
vim.cmd('q')
|