Skip to content

How to add custom treesitter grammars locally? #72

@treeman

Description

@treeman

I've got a bunch of scrappy ad-hoc treesitter grammars I use that I don't want to upstream. Would it be possible to render these extra grammars via arborium too?

I tried to keep the pipelines completely separate but it seems I can't have both tree-sitter and arborium as dependencies:

package `tree-sitter` links to the native library `tree-sitter`, but it conflicts with a previous package which links to `tree-sitter` as well:
package `arborium-tree-sitter v2.3.0`
    ... which satisfies dependency `arborium-tree-sitter = "^2.3.0"` of package `arborium v2.3.0`
    ... which satisfies dependency `arborium = "^2.3.0"` of package `jonashietala_se v0.1.0 (/home/tree/code/jonashietala)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "tree-sitter"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

Some advice/documentation here would be great.

I'm personally not interested in the WASM capabilities and only want to render it natively via Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions