Package Details: tree-sitter-css 0.25.0-2

Git Clone URL: https://aur.archlinux.org/tree-sitter-css.git (read-only, click to copy)
Package Base: tree-sitter-css
Description: CSS grammar for tree-sitter
Upstream URL: https://github.com/tree-sitter/tree-sitter-css
Licenses: MIT
Groups: tree-sitter-grammars
Provides: libtree-sitter-css.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 3
Popularity: 1.10
First Submitted: 2025-03-06 11:10 (UTC)
Last Updated: 2026-01-03 17:52 (UTC)

Latest Comments

Chocobo1 commented on 2026-01-03 17:32 (UTC) (edited on 2026-01-03 17:37 (UTC) by Chocobo1)

The official Arch Extra repo tree-sitter packages, like tree-sitter-c, tree-sitter-lua, tree-sitter-python, and etc.

Like this one: https://gitlab.archlinux.org/archlinux/packaging/packages/tree-sitter-python/-/blob/6fd85bcd0eed15fac8f7807c8ba86e7f866d471c/PKGBUILD#L42-43

I see, thanks!

Currently in Neovim I need to manually have /usr/lib/libtree-sitter-css.so in the runtime path some way or another; however, when its available under /usr/lib/tree_sitter/ it will be loaded automaticity when needed.

Just recording what I've found...

I looked around since I find it strange that many tree-sitter-* libraries are installing to /usr/lib/libtree-sitter-*.so by default, yet users are expecting it find it under /usr/lib/tree_sitter/.

It seems it comes from this bold assumption: https://gitlab.archlinux.org/archlinux/packaging/packages/neovim/-/blob/390a730f1f0e85d48b3e49c69421cc7baeb3e00d/PKGBUILD#L74-76

And its parent commit: https://gitlab.archlinux.org/archlinux/packaging/packages/neovim/-/merge_requests/3

Guess I have no choice but to comply with their decision...

zefr0x commented on 2026-01-03 15:10 (UTC) (edited on 2026-01-03 15:19 (UTC) by zefr0x)

What "official repo"?

The official Arch Extra repo tree-sitter packages, like tree-sitter-c, tree-sitter-lua, tree-sitter-python, and etc.

Like this one: https://gitlab.archlinux.org/archlinux/packaging/packages/tree-sitter-python/-/blob/6fd85bcd0eed15fac8f7807c8ba86e7f866d471c/PKGBUILD#L42-43

Currently in Neovim I need to manually have /usr/lib/libtree-sitter-css.so in the runtime path some way or another; however, when its available under /usr/lib/tree_sitter/ it will be loaded automaticity when needed.

Chocobo1 commented on 2026-01-03 08:26 (UTC)

So it is available under /usr/lib/tree_sitter/.

Please report to upstream.

As done for ones shipped in the official repo.

What "official repo"?

zefr0x commented on 2026-01-02 23:17 (UTC)

There should be:

ln -s /usr/lib/lib$pkgname.so \
    "$pkgdir"/usr/lib/tree_sitter/${pkgname#tree-sitter-}.so

So it is available under /usr/lib/tree_sitter/. As done for ones shipped in the official repo.