diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-24 03:07:52 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-02-24 01:08:23 -0800 |
| commit | 853b1ab39ae80b2e0e4a2224ac49f1763f025385 (patch) | |
| tree | 65abd1bf0fbb19b479ddb48b35ded96c5dd7ca11 /scripts/write-lockfile.lua | |
| parent | feat: add dhall (diff) | |
| download | nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar.gz nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar.bz2 nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar.lz nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar.xz nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.tar.zst nvim-treesitter-853b1ab39ae80b2e0e4a2224ac49f1763f025385.zip | |
style: fill in missing code docs wherever applicable
Diffstat (limited to 'scripts/write-lockfile.lua')
| -rw-r--r-- | scripts/write-lockfile.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/write-lockfile.lua b/scripts/write-lockfile.lua index 6658c8859..b8833b91e 100644 --- a/scripts/write-lockfile.lua +++ b/scripts/write-lockfile.lua @@ -1,10 +1,15 @@ -- Execute as `nvim --headless -c "luafile ./scripts/write-lockfile.lua"` + +---@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 + print("Skipping languages: " .. vim.inspect(skip_langs)) require("nvim-treesitter.install").write_lockfile("verbose", skip_langs) vim.cmd "q" |
