mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
|
|
@ -1,18 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
make_ignored() {
|
||||
if [[ -n $1 ]]; then
|
||||
if [ -n "$1" ]
|
||||
then
|
||||
while read -r lang; do
|
||||
if [[ $lang != "$1" ]]; then
|
||||
printf '%s,' "$lang"
|
||||
if [ "$lang" != "$1" ]
|
||||
then
|
||||
printf "%s," "$lang"
|
||||
fi
|
||||
done < <(jq -r 'keys[]' lockfile.json)
|
||||
done < <(jq 'keys|@sh' -c lockfile.json)
|
||||
fi
|
||||
}
|
||||
|
||||
SKIP_LOCKFILE_UPDATE_FOR_LANGS="$(make_ignored "$1")" \
|
||||
nvim --headless -c 'luafile ./scripts/write-lockfile.lua' +q
|
||||
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
|
||||
jq --sort-keys > lockfile.json < /tmp/lockfile.json
|
||||
cat /tmp/lockfile.json | jq --sort-keys > lockfile.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue