From 8ac2a280a4b6e485bca9860d3344c2aacbb4cf0e Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 6 Aug 2025 22:17:13 +0200 Subject: [PATCH] stuff --- profiles/base/home-manager/default.nix | 1 + profiles/base/home-manager/lazygit.nix | 42 ++++++++++++++++++ profiles/base/home-manager/neovim/options.nix | 4 +- profiles/base/home-manager/starship.nix | 43 ++++--------------- profiles/base/packages.nix | 1 - 5 files changed, 53 insertions(+), 38 deletions(-) create mode 100644 profiles/base/home-manager/lazygit.nix diff --git a/profiles/base/home-manager/default.nix b/profiles/base/home-manager/default.nix index 66e67f2..adec892 100644 --- a/profiles/base/home-manager/default.nix +++ b/profiles/base/home-manager/default.nix @@ -2,6 +2,7 @@ imports = [ ./atuin.nix ./bat.nix + ./lazygit.nix ./eza.nix ./fish.nix ./git.nix diff --git a/profiles/base/home-manager/lazygit.nix b/profiles/base/home-manager/lazygit.nix new file mode 100644 index 0000000..e1d58ef --- /dev/null +++ b/profiles/base/home-manager/lazygit.nix @@ -0,0 +1,42 @@ +{ + programs.lazygit = { + settings = { + gui = { + theme = { + activeBorderColor = [ + "#8839ef" + "bold" + ]; + inactiveBorderColor = [ + "#6c6f85" + ]; + optionsTextColor = [ + "#1e66f5" + ]; + selectedLineBgColor = [ + "#ccd0da" + ]; + cherryPickedCommitBgColor = [ + "#bcc0cc" + ]; + cherryPickedCommitFgColor = [ + "#8839ef" + ]; + unstagedChangesColor = [ + "#d20f39" + ]; + defaultFgColor = [ + "#4c4f69" + ]; + searchingActiveBorderColor = [ + "#df8e1d" + ]; + }; + + authorColors = { + "*" = "#7287fd"; + }; + }; + }; + }; +} diff --git a/profiles/base/home-manager/neovim/options.nix b/profiles/base/home-manager/neovim/options.nix index bfe80b7..901ca30 100644 --- a/profiles/base/home-manager/neovim/options.nix +++ b/profiles/base/home-manager/neovim/options.nix @@ -2,7 +2,7 @@ programs.nixvim.globalOpts = { expandtab = true; shiftwidth = 2; - foldmethod = "expr"; - foldexpr = "nvim_treesitter#foldexpr()"; + # foldmethod = "expr"; + # foldexpr = "nvim_treesitter#foldexpr()"; }; } diff --git a/profiles/base/home-manager/starship.nix b/profiles/base/home-manager/starship.nix index 929a71c..c42e530 100644 --- a/profiles/base/home-manager/starship.nix +++ b/profiles/base/home-manager/starship.nix @@ -8,7 +8,9 @@ format = lib.concatStrings [ "$directory" - "$\{custom.jj\}" + "$git_branch" + "$git_status" + "$git_metrics" "$line_break" "$character" ]; @@ -18,43 +20,14 @@ error_symbol = "[❯](bold red)"; }; - custom.jj = { - ignore_timeout = true; - description = "The current jj status"; - when = "jj root"; - symbol = "🥋 "; - command = lib.concatStrings [ - "jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '" - "separate(\" \"," - " change_id.shortest(4)," - " bookmarks," - " \"|\"," - " concat(" - " if(conflict, \"💥\")," - " if(divergent, \"🚧\")," - " if(hidden, \"👻\")," - " if(immutable, \"🔒\")," - " )," - " raw_escape_sequence(\"\\x1b[1;32m\") ++ if(empty, \"(empty)\")," - " raw_escape_sequence(\"\\x1b[1;32m\") ++ coalesce(" - " truncate_end(29, description.first_line(), \"…\")," - " \"(no description set)\"," - " ) ++ raw_escape_sequence(\"\\x1b[0m\")," - ")'" - ]; + git_branch = { + format = " [ $branch]($style) "; }; - git_state = { - disabled = true; - }; - git_commit = { - disabled = true; - }; git_metrics = { - disabled = true; - }; - git_branch = { - disabled = true; + disabled = false; + added_style = "bold green"; + format = "[+$added]($added_style)/[-$deleted]($deleted_style) "; }; }; }; diff --git a/profiles/base/packages.nix b/profiles/base/packages.nix index fddeb77..491b653 100644 --- a/profiles/base/packages.nix +++ b/profiles/base/packages.nix @@ -2,7 +2,6 @@ with pkgs; [ age age-plugin-yubikey - lazygit alejandra delta docker