mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Pass args to helix shortcut
This commit is contained in:
parent
6bb9fe6d77
commit
8a38d36e0a
2 changed files with 8 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
|||
(homeConfiguration "nixos" {
|
||||
programs.nushell = {
|
||||
environmentVariables.EDITOR = "hx";
|
||||
shellAliases.hx = "sh -c '_hx() { kitty @ set-spacing padding=0; hx $@; kitty @ set-spacing padding=10; }; _hx'";
|
||||
};
|
||||
|
||||
programs.helix = enabled {
|
||||
|
|
|
@ -12,6 +12,14 @@ $env.ENV_CONVERSIONS.PATH = {
|
|||
}
|
||||
}
|
||||
|
||||
def hx [...arguments] {
|
||||
kitty @ set-spacing padding=0
|
||||
|
||||
^hx $arguments
|
||||
|
||||
kitty @ set-spacing padding=10
|
||||
}
|
||||
|
||||
if (tty) == /dev/tty1 {
|
||||
Hyprland
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue