From 0d45b550632dce4056fb67a148ed3a80e5aeb74b Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 28 Aug 2023 00:07:49 +1200 Subject: [PATCH] fix: helix config --- home/ooks/opt/nvim/default.nix | 2 -- home/ooks/opt/shell/default.nix | 3 ++- home/ooks/opt/shell/helix/default.nix | 13 +++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/home/ooks/opt/nvim/default.nix b/home/ooks/opt/nvim/default.nix index db595cc..2591df2 100644 --- a/home/ooks/opt/nvim/default.nix +++ b/home/ooks/opt/nvim/default.nix @@ -6,6 +6,4 @@ programs.neovim.viAlias = true; programs.neovim.vimAlias = true; - home.sessionVariables.EDITOR = "nvim"; - } diff --git a/home/ooks/opt/shell/default.nix b/home/ooks/opt/shell/default.nix index fccaec7..2af9949 100644 --- a/home/ooks/opt/shell/default.nix +++ b/home/ooks/opt/shell/default.nix @@ -7,7 +7,7 @@ ./pfetch.nix ./starship.nix ./joshuto - ./helix.nix + ./helix ]; home.packages = with pkgs; [ bc # Calculator @@ -27,6 +27,7 @@ unzip progress killall + gcc ]; programs = { diff --git a/home/ooks/opt/shell/helix/default.nix b/home/ooks/opt/shell/helix/default.nix index f08583b..9504b28 100644 --- a/home/ooks/opt/shell/helix/default.nix +++ b/home/ooks/opt/shell/helix/default.nix @@ -4,12 +4,17 @@ let in { home.sessionVariables.COLORTERM = "truecolor"; + home.sessionVariables.EDITOR = "hx"; + home.sessionVariables.VISUAL = "hx"; + + programs.helix = { enable = true; settings = { theme = colorscheme.slug; editor = { color-modes = true; + middle-click-paste = false; line-number = "relative"; indent-guides.render = true; cursor-shape = { @@ -17,6 +22,14 @@ in insert = "bar"; select = "underline"; }; + statusline = { + left = [ "mode" "spinner" ]; + center = [ "file-name" ]; + right = [ "diagnostics" "selections" "position" "file-encoding" "file-line-ending" "file-type" ]; + }; + lsp = { + display-messages = true; + }; }; }; themes = import ./theme.nix { inherit colorscheme; };