nix-configs/modules/helix.nix

39 lines
1,016 B
Nix
Raw Normal View History

2023-05-14 12:07:54 +02:00
{ 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, ... }: {
2023-05-14 12:07:54 +02:00
home = {
sessionVariables.EDITOR = "hx";
packages = [
pkgs.nil
2023-05-25 09:03:43 +02:00
pkgs.haskell-language-server
2023-05-14 12:07:54 +02:00
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;
};
2023-05-14 12:07:54 +02:00
keys.normal = {
space."=" = ":fmt";
"H" = "goto_line_start";
"L" = "goto_line_end";
};
};
};
};
};
}