From d3e5339e888ef6cdcea9bc129edb7a8a0df726a4 Mon Sep 17 00:00:00 2001 From: betaboon Date: Sat, 21 Dec 2024 14:08:03 +0100 Subject: [PATCH] Make nix-shell indicator configurable --- defaults.go | 3 +++ segment-nix-shell.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults.go b/defaults.go index 83c91ad1..4c85e2c0 100644 --- a/defaults.go +++ b/defaults.go @@ -86,6 +86,7 @@ var defaults = Config{ VenvIndicator: "\uE235", NodeIndicator: "\u2B22", RvmIndicator: "\uE92B", + NixIndicator: "\uF313", }, "patched": { Lock: "\uE0A2", @@ -109,6 +110,7 @@ var defaults = Config{ VenvIndicator: "\uE235", NodeIndicator: "\u2B22", RvmIndicator: "\uE92B", + NixIndicator: "\uF313", }, "flat": { RepoDetached: "\u2693", @@ -123,6 +125,7 @@ var defaults = Config{ VenvIndicator: "\uE235", NodeIndicator: "\u2B22", RvmIndicator: "\uE92B", + NixIndicator: "\uF313", }, }, Shells: ShellMap{ diff --git a/segment-nix-shell.go b/segment-nix-shell.go index af2ad1cd..dffcf827 100644 --- a/segment-nix-shell.go +++ b/segment-nix-shell.go @@ -13,7 +13,7 @@ func segmentNixShell(p *powerline) []pwl.Segment { } return []pwl.Segment{{ Name: "nix-shell", - Content: "\uf313", + Content: p.symbols.NixIndicator, Foreground: p.theme.NixShellFg, Background: p.theme.NixShellBg, }}