fix: helix config

This commit is contained in:
ooks-io 2023-08-28 00:07:49 +12:00
parent 4f24b2b423
commit 0d45b55063
3 changed files with 15 additions and 3 deletions

View file

@ -6,6 +6,4 @@
programs.neovim.viAlias = true;
programs.neovim.vimAlias = true;
home.sessionVariables.EDITOR = "nvim";
}

View file

@ -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 = {

View file

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