Skip to content

Commit 1034dc1

Browse files
author
Stephan Dilly
authored
add syntax highlighting (gitui-org#727)
1 parent a31f185 commit 1034dc1

File tree

11 files changed

+700
-32
lines changed

11 files changed

+700
-32
lines changed

Cargo.lock

+225
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ keywords = [
2222
scopetime = { path = "./scopetime", version = "0.1" }
2323
asyncgit = { path = "./asyncgit", version = "0.15" }
2424
filetree = { path = "./filetree" }
25+
async_utils = { path = "./async_utils" }
2526
crossterm = { version = "0.19", features = [ "serde" ] }
2627
clap = { version = "2.33", default-features = false }
2728
tui = { version = "0.15", default-features = false, features = ['crossterm', 'serde'] }
@@ -44,6 +45,8 @@ textwrap = "0.13"
4445
unicode-truncate = "0.2"
4546
easy-cast = "0.4"
4647
bugreport = "0.4"
48+
lazy_static = "1.4"
49+
syntect = { version = "4.5", default-features = false, features = ["metadata", "default-fancy"]}
4750

4851
[target.'cfg(all(target_family="unix",not(target_os="macos")))'.dependencies]
4952
which = "4.1"
@@ -63,6 +66,8 @@ timing=["scopetime/enabled"]
6366
members=[
6467
"asyncgit",
6568
"scopetime",
69+
"async_utils",
70+
"filetree",
6671
]
6772

6873
[profile.release]

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ fmt:
4545

4646
clippy:
4747
touch src/main.rs
48-
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
48+
cargo clean -p gitui -p asyncgit -p scopetime -p filetree -p async_utils
4949
cargo clippy --workspace --all-features
5050

5151
clippy-nightly:
5252
touch src/main.rs
53-
cargo clean -p gitui -p asyncgit -p scopetime -p filetree
53+
cargo clean -p gitui -p asyncgit -p scopetime -p filetree -p async_utils
5454
cargo +nightly clippy --all-features
5555

5656
check: fmt clippy test

0 commit comments

Comments
 (0)