mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
20 lines
438 B
Bash
Executable file
20 lines
438 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
make_ignored() {
|
|
if [ -n "$1" ]
|
|
then
|
|
while read -r lang; do
|
|
if [ "$lang" != "$1" ]
|
|
then
|
|
printf "%s," "$lang"
|
|
fi
|
|
done < <(jq 'keys|@sh' -c lockfile.json)
|
|
fi
|
|
}
|
|
|
|
TO_IGNORE=$(make_ignored $1)
|
|
|
|
SKIP_LOCKFILE_UPDATE_FOR_LANGS="$TO_IGNORE" nvim -l ./scripts/write-lockfile.lua
|
|
# Pretty print
|
|
cp lockfile.json /tmp/lockfile.json
|
|
cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
|