Skip to content

Commit

Permalink
feat: delta theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Nov 9, 2024
1 parent 9ae9f3e commit 1f858c8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .config/nix/TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TODO

- bat theme
- delta theme https://dandavison.github.io/delta/custom-themes.html
- separate repo for dotfiles (remove bare git repo)
- swap fish pure for starship prompt (https://starship.rs)
Expand Down
20 changes: 20 additions & 0 deletions .config/nix/files/delta/themes.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[delta "rsms-dark"]
file-style = "#BFBFBF"
file-decoration-style = "#272725 ul"
line-numbers-zero-style = "#4A4945"
line-numbers-right-style = "#272725"
line-numbers-left-style = "#272725"

hunk-header-style = "omit"

line-numbers-minus-style = "#F43"
minus-emph-style = syntax "#F43"
minus-empty-line-marker-style = syntax "#3D0500"
minus-non-emph-style = syntax "#3D0500"
minus-style = syntax "#3D0500"

line-numbers-plus-style = "#00DB6E"
plus-emph-style = syntax "#00DB6E"
plus-empty-line-marker-style = syntax "#002E17"
plus-non-emph-style = syntax "#002E17"
plus-style = syntax "#002E17"
4 changes: 4 additions & 0 deletions .config/nix/modules/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
};
credential.helper = "osxkeychain";
delta = {
features = "rsms-dark";
# TODO: nvim support
# hyperlinks = true;
navigate = true;
Expand All @@ -60,6 +61,9 @@
format = "ssh";
ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
};
include = {
path = "~/.config/delta/themes.gitconfig";
};
init.defaultBranch = "main";
interactive = {
diffFilter = "delta --color-only";
Expand Down
4 changes: 4 additions & 0 deletions .config/nix/modules/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
xdg = {
enable = true;
configFile = {
"delta" = {
source = ../files/delta;
recursive = true;
};
"fish" = {
source = ../files/fish;
recursive = true;
Expand Down

0 comments on commit 1f858c8

Please sign in to comment.