mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-22 13:24:40 +01:00
38 lines
977 B
Nix
38 lines
977 B
Nix
{ config, lib, ... }:
|
|
|
|
let cfg = config.jade.helix;
|
|
in with lib; {
|
|
options.jade.helix = {
|
|
enable = mkEnableOption "Enable helix";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
home-manager.users.jade = { pkgs, ... }: {
|
|
home = {
|
|
sessionVariables.EDITOR = "hx";
|
|
packages = [
|
|
pkgs.nil
|
|
pkgs.nodePackages_latest.vscode-html-languageserver-bin
|
|
pkgs.nodePackages_latest.vscode-json-languageserver-bin
|
|
pkgs.nodePackages_latest.vscode-css-languageserver-bin
|
|
pkgs.nodePackages_latest.bash-language-server
|
|
];
|
|
};
|
|
programs.helix = {
|
|
enable = true;
|
|
settings = {
|
|
theme = "gruvbox";
|
|
editor = {
|
|
line-number = "relative";
|
|
lsp.display-messages = true;
|
|
};
|
|
keys.normal = {
|
|
space."=" = ":fmt";
|
|
"H" = "goto_line_start";
|
|
"L" = "goto_line_end";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|