add helix and nu config
This commit is contained in:
22
devshell.nix
22
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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user