diff options
Diffstat (limited to 'modules/terminal/system/programs')
| -rw-r--r-- | modules/terminal/system/programs/broot.nix | 6 | ||||
| -rw-r--r-- | modules/terminal/system/programs/fish.nix | 3 | ||||
| -rw-r--r-- | modules/terminal/system/programs/helix.nix | 10 |
3 files changed, 17 insertions, 2 deletions
diff --git a/modules/terminal/system/programs/broot.nix b/modules/terminal/system/programs/broot.nix index ed86822..d36a5e5 100644 --- a/modules/terminal/system/programs/broot.nix +++ b/modules/terminal/system/programs/broot.nix @@ -10,9 +10,11 @@ conf = toml'.generate "conf.toml" { verbs = [ { - invocation = "edit"; + name = "open-code"; key = "enter"; - execution = "${pkgs.helix}/bin/hx {file}"; + execution = "$EDITOR +{line} {file}"; + working_dir = "{root}"; + leave_broot = true; } ]; }; diff --git a/modules/terminal/system/programs/fish.nix b/modules/terminal/system/programs/fish.nix index 7501251..7ce525f 100644 --- a/modules/terminal/system/programs/fish.nix +++ b/modules/terminal/system/programs/fish.nix @@ -46,6 +46,8 @@ ${pkgs.starship}/bin/starship init fish | source ${pkgs.broot}/bin/broot --print-shell-function fish | source + ${pkgs.pay-respects}/bin/pay-respects fish --alias | source + # extra bindings bind 'alt-c' cool-cd @@ -78,6 +80,7 @@ in unzip btop jq + pay-respects ]; }; } diff --git a/modules/terminal/system/programs/helix.nix b/modules/terminal/system/programs/helix.nix index 4ba78d0..8c39ec2 100644 --- a/modules/terminal/system/programs/helix.nix +++ b/modules/terminal/system/programs/helix.nix @@ -8,6 +8,16 @@ toml' = pkgs.formats.toml {}; languages = toml'.generate "languages.toml" { + language-server = { + rust-analyzer.command = "${pkgs.rust-analyzer}/bin/rust-analyzer"; + nil.command = "${pkgs.nil}/bin/nil"; + superhtml = { + command = "${pkgs.superhtml}/bin/superhtml"; + args = ["lsp"]; + }; + dhall-lsp-server.command = "${pkgs.dhall-lsp-server}/bin/dhall-lsp-server"; + }; + language = [ { name = "nix"; |
