commit 157f603f50bda3f57b9163750e401173b5074eb1
parent 34581dafda417971934f71c97fc9c4919ffd5d0d
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 26 Mar 2025 08:45:35 +0100
parent 34581dafda417971934f71c97fc9c4919ffd5d0d
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 26 Mar 2025 08:45:35 +0100
configurations/homeManager/programs: add `helix`
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/configurations/common/common.nix b/configurations/common/common.nix @@ -42,6 +42,7 @@ in { ctucxConfig.homeManager.programs.bat ctucxConfig.homeManager.programs.micro + ctucxConfig.homeManager.programs.helix ctucxConfig.homeManager.programs.tmux ctucxConfig.homeManager.programs.htop
diff --git a/configurations/homeManager/programs/helix.nix b/configurations/homeManager/programs/helix.nix @@ -0,0 +1,37 @@ +{ lib, pkgs, ... }: + +{ + + home = { + sessionVariables.EDITOR = lib.mkForce "hx"; + shellAliases.nano = lib.mkForce "hx"; + }; + + programs.helix = { + enable = true; + settings = { + editor.cursor-shape.insert = "bar"; + editor.bufferline = "always"; + theme = "base16_transparent"; + }; + languages = { + language-server.scls.command = lib.getExe pkgs.unstable.simple-completion-language-server; + language = [ + { + name = "stub"; + scope = "text.stub"; + file-types = []; + shebangs = []; + roots = []; + auto-format = false; + language-servers = [ "scls" ]; + } + ]; + }; + extraPackages = with pkgs; [ + nil + markdown-oxide + ]; + }; + +}