helix/module.nix: setting changes

This commit is contained in:
Charlie Root 2024-09-03 15:20:49 +02:00
commit 4d66f4f332

View file

@ -7,7 +7,7 @@
}: let }: let
cfg = config.modules.system.programs.editors.helix; cfg = config.modules.system.programs.editors.helix;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
inherit (lib) mkIf getExe makeBinPath; inherit (lib) mkIf makeBinPath;
in { in {
imports = [./languages.nix]; imports = [./languages.nix];
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -41,12 +41,14 @@ in {
lsp.display-inlay-hints = true; lsp.display-inlay-hints = true;
line-number = "relative"; line-number = "relative";
true-color = true; true-color = true;
auto-format = true;
completion-timeout = 5;
mouse = true; mouse = true;
bufferline = "multiple"; bufferline = "multiple";
soft-wrap.enable = true; soft-wrap.enable = true;
lsp.display-messages = true; lsp.display-messages = true;
cursor-shape = {insert = "bar";}; cursor-shape = {insert = "bar";};
statusline.left = ["mode" "spinner" "version-control" "file-name"]; statusline.left = ["spinner" "version-control" "file-name"];
inline-diagnostics = { inline-diagnostics = {
cursor-line = "hint"; cursor-line = "hint";
other-lines = "error"; other-lines = "error";