Package Details: tree-sitter-c-sharp 0.23.5-3

Git Clone URL: https://aur.archlinux.org/tree-sitter-c-sharp.git (read-only, click to copy)
Package Base: tree-sitter-c-sharp
Description: C# grammar for tree-sitter
Upstream URL: https://github.com/tree-sitter/tree-sitter-c-sharp
Licenses: MIT
Groups: tree-sitter-grammars
Provides: libtree-sitter-c-sharp.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 1
Popularity: 0.72
First Submitted: 2025-03-06 08:47 (UTC)
Last Updated: 2026-05-06 10:27 (UTC)

Latest Comments

pbtechie commented on 2026-05-06 12:27 (UTC)

Beautiful, thanks for the quick update! 🤩

pbtechie commented on 2026-05-06 09:12 (UTC) (edited on 2026-05-06 10:15 (UTC) by pbtechie)

I get the following error in neovim when I run :checkhealth:

- ❌ ERROR Failed to run healthcheck for "vim.treesitter" plugin. Exception
  /usr/share/nvim/runtime/lua/vim/treesitter/health.lua:61: no such language: c-sharp

Calling :lua print(vim.treesitter.language.get_lang("cs")) returns c_sharp, and renaming the link from /usr/lib/tree_sitter/c-sharp.so to /usr/lib/tree_sitter/c_sharp.so does fix it.

Would it be possible to change line 42 in PKGBUILD to the following:?

ln -s "/usr/lib/libtree-sitter-c-sharp.so" "$pkgdir/usr/lib/tree_sitter/c_sharp.so"

TIA!

Edit: one more request. Could you add the queries too? I tested this locally, and it works as I hoped:

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" PREFIX="/usr" install
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/tree-sitter-c-sharp"
  install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/tree-sitter-c-sharp"

  # Install tree-sitter queries
  install -Dm644 "queries/highlights.scm" "queries/tags.scm" -t "$pkgdir/usr/share/nvim/runtime/queries/c_sharp"

  # https://gitlab.archlinux.org/archlinux/packaging/packages/neovim/-/blob/390a730f1f0e85d48b3e49c69421cc7baeb3e00d/PKGBUILD#L74-76
  install -d "$pkgdir/usr/lib/tree_sitter"
  ln -s "/usr/lib/libtree-sitter-c-sharp.so" "$pkgdir/usr/lib/tree_sitter/c_sharp.so"
}

Auerhuhn commented on 2025-03-09 16:56 (UTC)

Thanks a bunch @Chocobo1!

Chocobo1 commented on 2025-03-09 15:50 (UTC)

Would you mind adding nodejs to makedepends?

Done!

Auerhuhn commented on 2025-03-09 15:01 (UTC)

Hi @Chocobo1,

Would you mind adding nodejs to makedepends?

Regards Claudia