summaryrefslogtreecommitdiff
path: root/fnl/conf/pkgs/heirline.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/conf/pkgs/heirline.fnl')
-rw-r--r--fnl/conf/pkgs/heirline.fnl10
1 files changed, 10 insertions, 0 deletions
diff --git a/fnl/conf/pkgs/heirline.fnl b/fnl/conf/pkgs/heirline.fnl
index b39bcf3..3579d9c 100644
--- a/fnl/conf/pkgs/heirline.fnl
+++ b/fnl/conf/pkgs/heirline.fnl
@@ -78,10 +78,20 @@
(string.rep (. self :sbar i) 2))
:hl {:fg (theme :syn :fun) :bg (theme :ui :bg)}})
+(local Nix
+ {:condition (fn [] vim.env.IN_NIX_SHELL)
+ :provider (fn [self]
+ (local purity vim.env.IN_NIX_SHELL)
+ (local name vim.env.name)
+ (.. "" purity "(" name ")"))
+ :hl {:fg (theme :syn :fun) :bold true :bg (theme :ui :bg_m3)}})
+
(local StatusLine [FileNameBlock
Space
DAPMessages
Align
+ Nix
+ Space
Ruler
Space
ScrollBar