From 574d732c376e2043e2a9a81fe524c9fac9cebda8 Mon Sep 17 00:00:00 2001 From: Sin Ser'hao Date: Tue, 30 Dec 2025 16:18:19 +0100 Subject: [PATCH] add helix and nu config --- devshell.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/devshell.nix b/devshell.nix index 6c6cb74..cbac0e7 100644 --- a/devshell.nix +++ b/devshell.nix @@ -1,4 +1,24 @@ { pkgs }: +let + helix-config = pkgs.writeText "helix.conf" '' + [editor.cursor-shape] + insert = "bar" + normal = "block" + select = "underline" + + [editor.indent-guides] + render = true + character = "╎" # Some characters that work well: "▏", "┆", "┊", "⸽" + skip-levels = 1 + ''; + + nu-config = pkgs.writeText "nu.conf" '' + $env.config = { + show_banner: false, + } + alias "hx" = hx -c ${helix-config} + ''; +in pkgs.mkShell { # Add build dependencies packages = with pkgs; [ @@ -25,7 +45,7 @@ pkgs.mkShell { # Load custom bash code shellHook = '' - nu + nu --config ${nu-config} exit 0 ''; }