Update README
This commit is contained in:
parent
a0fb48c088
commit
d80739e62d
|
@ -77,13 +77,13 @@ group.number = ["integer_literal", "float_literal", "negative_literal"]
|
||||||
|
|
||||||
If you are using nix, the `flake.nix` file provides an attribute `packages.kak-tree` resolving to a kakoune plugin one can use in home-manager's `programs.kakoune.plugins` or build yourself with `kakoune.override { plugins = ... }`.
|
If you are using nix, the `flake.nix` file provides an attribute `packages.kak-tree` resolving to a kakoune plugin one can use in home-manager's `programs.kakoune.plugins` or build yourself with `kakoune.override { plugins = ... }`.
|
||||||
|
|
||||||
If not, you will have to set up the build environment yourself. Since we use static linking, compile each tree sitter plugin to a statically linked library to `lib/libtree-sitter-LANG.a`, and then build:
|
If not, you will have to set up the build environment yourself. Since we use static linking, compile each tree sitter plugin to a statically linked library to `./sitters/libtree-sitter-LANG.a`, and then build:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ [ compile tree sitter for i.e. javascript... ]
|
$ [ compile tree sitter for i.e. javascript... ]
|
||||||
$ ls lib
|
$ ls sitters
|
||||||
libtree-sitter-javascript.a
|
libtree-sitter-javascript.a
|
||||||
$ cargo build --no-default-features --features javascript --release
|
$ SITTERS=./sitters cargo build --no-default-features --features javascript --release
|
||||||
[ ... ]
|
[ ... ]
|
||||||
$ ./target/release/kak-tree --do-you-understand javascript
|
$ ./target/release/kak-tree --do-you-understand javascript
|
||||||
Known language. Trying to load
|
Known language. Trying to load
|
||||||
|
|
Loading…
Reference in New Issue
Block a user