From 889ab1e7a3f0969735f5700d4b03ac67ce3fe874 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 9 Sep 2025 16:30:02 +0200 Subject: [PATCH] add back helix --- modules/home/all/helix.nix | 23 +++++++++++++++++++++++ modules/home/default.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 modules/home/all/helix.nix diff --git a/modules/home/all/helix.nix b/modules/home/all/helix.nix new file mode 100644 index 0000000..f1d4575 --- /dev/null +++ b/modules/home/all/helix.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + programs.helix = { + enable = true; + extraPackages = with pkgs; [ + marksman + ]; + settings = { + theme = "snazzy"; + editor.true-color = true; + keys.insert.j.j = "normal_mode"; + # Shortcut to save file, in any mode. + keys.insert."C-s" = [ ":write" "normal_mode" ]; + keys.normal."C-s" = ":write"; + + editor.lsp = { + display-messages = true; + display-inlay-hints = true; + display-signature-help-docs = true; + }; + }; + }; +} diff --git a/modules/home/default.nix b/modules/home/default.nix index ec656fd..a2f7016 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -3,6 +3,7 @@ imports = [ ./all/tmux.nix # ./all/neovim + ./all/helix.nix ./all/starship.nix ./all/terminal.nix ./all/nix.nix