helix: update user interface
This commit is contained in:
parent
8cd6e6bf87
commit
c66409ee13
5 changed files with 25 additions and 6 deletions
|
@ -1,13 +1,15 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
let inherit (pkgs.uservars) key theme color accent font editor;
|
||||
in {
|
||||
config = {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.helix;
|
||||
settings = {
|
||||
theme = "gruvbox";
|
||||
theme = "my-theme";
|
||||
editor = {
|
||||
cursorline = true;
|
||||
auto-save = true;
|
||||
whitespace.render = "all";
|
||||
whitespace.characters = {
|
||||
space = "·";
|
||||
|
@ -61,7 +63,23 @@ in {
|
|||
};
|
||||
keys.insert = { "A-k" = "normal_mode"; };
|
||||
};
|
||||
languages = [
|
||||
{ auto-format = true; formatter = { command = "nixpkgs-fmt"; }; name = "nix"; }
|
||||
{ auto-format = true; name = "rust"; }
|
||||
];
|
||||
themes =
|
||||
{
|
||||
my-theme = {
|
||||
"inherits" = "gruvbox";
|
||||
"ui.menu" = "none";
|
||||
"ui.background" = { bg = "none"; };
|
||||
"ui.virtual.whitespace" = color.nontxt;
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [ pkgs.unstable.helix ];
|
||||
home.sessionVariables = lib.mkIf (editor == "helix") {
|
||||
EDITOR = "hx";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue