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