-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong link to delta theme #213
Comments
Hi, I recently came across this issue and I believe I found a solution. According to the documentation,
$ mkdir -p "$(bat --config-dir)/themes"
$ cd "$(bat --config-dir)/themes"
$ git clone https://github.com/obergodmar/kanagawa-tmTheme.git kanagawa
$ bat cache --build
$ bat --list-themes
... omitted lines ...
Theme: Kanagawa
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
}
... omitted lines ...
$ delta --show-syntax-themes
... omitted lines ...
Syntax theme: Kanagawa
example.rs
──────────
───┐
1: │
───┘
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
// Output the cube of a number.
fn print_cube(num: f64) {
let result = f64::powf(num, 3.0);
println!("The cube of {:.2} is {:.2}.", num, result);
... omitted lines ...
[delta]
navigate = true
+ syntax-theme = Kanagawa
Hope this helps 🙂 |
delta distinguishes between "syntax themes" and "themes" (or styles). While syntax themes can be read from It would be great if there was a delta style that matches the syntax theme (on my current machine the default style has bad contrast with the kanagawa syntax theme). |
The README refers to the tmTheme for delta:
kanagawa.nvim/README.md
Line 371 in bfa818c
It's an XML file:
kanagawa.nvim/extras/kanagawa.tmTheme
Lines 1 to 450 in bfa818c
But themes for delta are not XML or anything similar at all:
https://github.com/dandavison/delta/blob/main/themes.gitconfig
The text was updated successfully, but these errors were encountered: