Modules/Helix: Undeprecate and enable helix

This commit is contained in:
2026-07-02 11:18:05 +02:00
parent 4f2486ae4a
commit b78a1b6e88
4 changed files with 9 additions and 7 deletions
+64
View File
@@ -0,0 +1,64 @@
# TODO: Expose some settings
# TODO: Fix language config
{
config,
nixosConfig,
lib,
mylib,
pkgs,
...
}:
with lib;
with mylib.modules; let
cfg = config.homemodules.helix;
in {
options.homemodules.helix = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable {
# home.sessionVariables = {
# EDITOR = "hx";
# VISUAL = "hx";
# };
programs.helix = {
enable = true;
# NOTE: Syntax changed
# languages = [
# {
# name = "verilog";
# roots = [
# ".svls.toml"
# ".svlint.toml"
# ];
# language-server = {
# command = "svls";
# args = [];
# };
# }
# ];
# https://docs.helix-editor.com/configuration.html
settings = {
theme = "catppuccin_mocha";
editor = {
scrolloff = 10;
mouse = true;
middle-click-paste = true;
line-number = "relative";
cursorline = true;
color-modes = true;
auto-completion = true; # Default
bufferline = "multiple";
cursor-shape = {
normal = "block";
insert = "bar";
select = "underline";
};
lsp.display-messages = true;
indent-guides.render = false;
};
};
};
};
}
+9
View File
@@ -0,0 +1,9 @@
{
lib,
mylib,
...
}:
with lib;
with mylib.modules; {
enable = mkEnableOption "Helix Editor";
}