add helix and nu config

This commit is contained in:
2025-12-30 16:18:19 +01:00
parent ec12c3826b
commit 574d732c37

View File

@@ -1,4 +1,24 @@
{ pkgs }: { 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 { pkgs.mkShell {
# Add build dependencies # Add build dependencies
packages = with pkgs; [ packages = with pkgs; [
@@ -25,7 +45,7 @@ pkgs.mkShell {
# Load custom bash code # Load custom bash code
shellHook = '' shellHook = ''
nu nu --config ${nu-config}
exit 0 exit 0
''; '';
} }