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.viAlias = true;
programs.neovim.vimAlias = true; programs.neovim.vimAlias = true;
home.sessionVariables.EDITOR = "nvim";
} }

View file

@ -7,7 +7,7 @@
./pfetch.nix ./pfetch.nix
./starship.nix ./starship.nix
./joshuto ./joshuto
./helix.nix ./helix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
bc # Calculator bc # Calculator
@ -27,6 +27,7 @@
unzip unzip
progress progress
killall killall
gcc
]; ];
programs = { programs = {

View file

@ -4,12 +4,17 @@ let
in in
{ {
home.sessionVariables.COLORTERM = "truecolor"; home.sessionVariables.COLORTERM = "truecolor";
home.sessionVariables.EDITOR = "hx";
home.sessionVariables.VISUAL = "hx";
programs.helix = { programs.helix = {
enable = true; enable = true;
settings = { settings = {
theme = colorscheme.slug; theme = colorscheme.slug;
editor = { editor = {
color-modes = true; color-modes = true;
middle-click-paste = false;
line-number = "relative"; line-number = "relative";
indent-guides.render = true; indent-guides.render = true;
cursor-shape = { cursor-shape = {
@ -17,6 +22,14 @@ in
insert = "bar"; insert = "bar";
select = "underline"; 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; }; themes = import ./theme.nix { inherit colorscheme; };