mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 20:17:45 +00:00
Set helix alias in helix.nix
This commit is contained in:
parent
e293f31a45
commit
23ceb8e6a7
2 changed files with 18 additions and 14 deletions
|
@ -1,8 +1,24 @@
|
||||||
{ ulib, lib, pkgs, upkgs, ... }: with ulib; merge
|
{ ulib, lib, pkgs, upkgs, ... }: with ulib; merge
|
||||||
|
|
||||||
(homeConfiguration {
|
(homeConfiguration {
|
||||||
programs.nushell.environmentVariables.EDITOR = "hx";
|
programs.nushell = {
|
||||||
programs.nushell.shellAliases.x = "hx";
|
environmentVariables.EDITOR = "hx";
|
||||||
|
shellAliases.x = "hx";
|
||||||
|
|
||||||
|
configFile.text = lib.mkAfter ''
|
||||||
|
def --wrapped hx [...arguments] {
|
||||||
|
if ($env.TERM | str contains "kitty") {
|
||||||
|
kitty @ set-spacing padding=0
|
||||||
|
}
|
||||||
|
|
||||||
|
^hx $arguments
|
||||||
|
|
||||||
|
if ($env.TERM | str contains "kitty") {
|
||||||
|
kitty @ set-spacing padding=${toString theme.padding}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
programs.helix = enabled {
|
programs.helix = enabled {
|
||||||
languages.language = [
|
languages.language = [
|
||||||
|
|
|
@ -23,17 +23,5 @@ def --env mc [path: path] {
|
||||||
cd $path
|
cd $path
|
||||||
}
|
}
|
||||||
|
|
||||||
def --wrapped hx [...arguments] {
|
|
||||||
if ($env.TERM | str contains "kitty") {
|
|
||||||
kitty @ set-spacing padding=0
|
|
||||||
}
|
|
||||||
|
|
||||||
^hx $arguments
|
|
||||||
|
|
||||||
if ($env.TERM | str contains "kitty") {
|
|
||||||
kitty @ set-spacing padding=${toString theme.padding}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
use ${upkgs.nuScripts}/modules/background_task/task.nu
|
use ${upkgs.nuScripts}/modules/background_task/task.nu
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue