Update to solve issues

This commit is contained in:
Ryan Hughes
2025-10-24 02:00:42 -04:00
parent 5619818b41
commit 727fad86c3
2 changed files with 3 additions and 13 deletions
+3 -8
View File
@@ -39,11 +39,6 @@ build() {
nvim --headless \
"+Lazy! sync" \
"+qa!" || true
echo "Ensuring critical TreeSitter parsers are compiled..."
nvim --headless \
"+TSInstall bash c diff dtd html javascript jsdoc lua luadoc markdown markdown_inline python regex toml tsx typescript vim vimdoc xml yaml" \
"+qa!" || true
}
package() {
@@ -54,9 +49,9 @@ package() {
cp -a "$XDG_CONFIG_HOME/nvim" "$pkgdir/usr/share/$pkgname/config"
cp -a "$XDG_DATA_HOME/nvim" "$pkgdir/usr/share/$pkgname/data"
# Remove broken symlinks from queries directory
# These will be recreated at runtime by the setup script
find "$pkgdir/usr/share/$pkgname/data/site/queries" -type l -delete
# Remove everything from site/ directory but keep the directory to prevent error
rm -rf "$pkgdir/usr/share/$pkgname/data/site"/*
mkdir -p "$pkgdir/usr/share/$pkgname/data/site"
# Fix permissions to be readable by all users
chmod -R 755 "$pkgdir/usr/share/$pkgname"
@@ -56,9 +56,4 @@ for dir in $DATA_DIR/lazy/*/; do
fi
done
# Recreate TreeSitter query symlinks
for query_lang in "$DATA_DIR/lazy/nvim-treesitter/runtime/queries"/*; do
ln -sf "$query_lang" "$DATA_DIR/site/queries/$(basename "$query_lang")"
done
echo "Neovim setup complete!"