diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-09-26 17:30:14 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-09-27 16:03:31 -0400 |
| commit | d0afa81fc70959d39fdcd3b6c353657b47373248 (patch) | |
| tree | a51d80315aa5a3a0612465116943a4c3f6d25e90 /home | |
| parent | cb3b058f29ac7f778ac44f2f29842eeef0fa28b7 (diff) | |
hx with steel
Diffstat (limited to 'home')
| -rwxr-xr-x | home/helix.nix | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/home/helix.nix b/home/helix.nix index ab345c8..d159a5a 100755 --- a/home/helix.nix +++ b/home/helix.nix @@ -1,6 +1,14 @@ -{ pkgs, ... }: +{ + config, + pkgs, + ... +}: let + nhx = builtins.fetchTarball { + url = "https://github.com/Ra77a3l3-jar/nhx/archive/0f11db8ed173522b73c7323e03d8fbe604594b13.tar.gz"; + sha256 = "0dcnjw7fw1nsylqpjcrl825yq1plw5aqnnqd21zl2pshn8px51b7"; + }; wRoots = roots: roots @@ -11,19 +19,48 @@ let in { + imports = [ + "${nhx}/modules" + ]; + home.packages = [ pkgs.nerd-fonts.symbols-only ]; + home.sessionVariables.STEEL_HOME = "${config.xdg.dataHome}/steel"; + xdg.configFile."helix/ignore".text = '' .git/ node_modules/ build/ ''; + xdg.configFile."helix/runtime/queries/rust".source = "${pkgs.helix.runtime}/queries/rust"; + + programs.nhx = { + enable = true; + package = null; + + steel = { + enable = true; + lsp.enable = true; + }; + + plugins = { + oil.enable = true; + juju.enable = true; + who.enable = true; + # zen-mode.enable = true; + breadcrumbs.enable = true; + helix-file-watcher.enable = true; + smooth-scroll.enable = true; + }; + }; + programs.helix = { enable = true; - package = pkgs.helix; + package = pkgs.steelix; + extraPackages = [ pkgs.steel ]; defaultEditor = false; settings = { theme = "grace_rose_pine"; @@ -36,6 +73,7 @@ in select = "underline"; }; default-yank-register = "+"; + clipboard-provider = if (import ../host.nix).name == "turing" then "pasteboard" else "termcode"; cursorline = true; cursorcolumn = true; continue-comments = false; @@ -101,8 +139,8 @@ in t = ":new"; v = "vsplit"; }; - "C-k" = "page_cursor_half_up"; - "C-j" = "page_cursor_half_down"; + # "C-k" = "half-page-up-smooth"; + # "C-j" = "half-page-down-smooth"; "K" = "hover"; "ret" = "goto_word"; }; |
