Update to solve issues
This commit is contained in:
2 files changed
+3
-13
No files matched your search
@@ -39,11 +39,6 @@ build() {
|
|||||||
nvim --headless \
|
nvim --headless \
|
||||||
"+Lazy! sync" \
|
"+Lazy! sync" \
|
||||||
"+qa!" || true
|
"+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() {
|
package() {
|
||||||
@@ -54,9 +49,9 @@ package() {
|
|||||||
cp -a "$XDG_CONFIG_HOME/nvim" "$pkgdir/usr/share/$pkgname/config"
|
cp -a "$XDG_CONFIG_HOME/nvim" "$pkgdir/usr/share/$pkgname/config"
|
||||||
cp -a "$XDG_DATA_HOME/nvim" "$pkgdir/usr/share/$pkgname/data"
|
cp -a "$XDG_DATA_HOME/nvim" "$pkgdir/usr/share/$pkgname/data"
|
||||||
|
|
||||||
# Remove broken symlinks from queries directory
|
# Remove everything from site/ directory but keep the directory to prevent error
|
||||||
# These will be recreated at runtime by the setup script
|
rm -rf "$pkgdir/usr/share/$pkgname/data/site"/*
|
||||||
find "$pkgdir/usr/share/$pkgname/data/site/queries" -type l -delete
|
mkdir -p "$pkgdir/usr/share/$pkgname/data/site"
|
||||||
|
|
||||||
# Fix permissions to be readable by all users
|
# Fix permissions to be readable by all users
|
||||||
chmod -R 755 "$pkgdir/usr/share/$pkgname"
|
chmod -R 755 "$pkgdir/usr/share/$pkgname"
|
||||||
|
|||||||
@@ -56,9 +56,4 @@ for dir in $DATA_DIR/lazy/*/; do
|
|||||||
fi
|
fi
|
||||||
done
|
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!"
|
echo "Neovim setup complete!"
|
||||||
Reference in new issue
Block a user