summaryrefslogtreecommitdiff
path: root/modules/home-manager/helix.nix
blob: cbcd6c0732fdddb1f264d883537c8ff31252e5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ pkgs, inputs, ... }: {
  # https://github.com/catppuccin/helix
  xdg.configFile."helix/themes".source = "${inputs.catppuccin-helix}/themes/default";

  programs.helix = {
    enable = true;
    package = pkgs.helix;
    # defaultEditor = true;
    # themes = {
    #   custom = {
    #     "inherits" = "catpuccin_mocha";
    #     "ui.background" = {};
    #   };
    # };
    settings = {
      # theme = "catppuccin_mocha";
      theme = "base16_transparent";
      editor = {
        line-number = "relative";
        cursorline = true;
        color-modes = true;
        lsp.display-messages = true;
        cursor-shape = {
          insert = "bar";
          normal = "block";
          select = "underline";
        };
        indent-guides.render = true;
      };
    };
  };
}