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; };