zaphyra's git: nixfiles

zaphyra and void's nixfiles

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 
33 
34 
35 
36 
37 
38 
39 
{ lib, pkgs, ... }:

{

  home = {
    sessionVariables.EDITOR = lib.mkForce "hx";
    #    shellAliases.nano = lib.mkForce "hx";
  };

  programs.helix = {
    enable = true;
    settings = {
      editor.cursor-shape.insert = "bar";
      editor.bufferline = "always";
      keys.insert."C-t" = "indent";
      keys.insert."C-d" = "unindent";
      theme = "base16_default";
    };
    languages = {
      language-server.scls.command = lib.getExe pkgs.unstable.simple-completion-language-server;
      language = [
        {
          name = "stub";
          scope = "text.stub";
          file-types = [ ];
          shebangs = [ ];
          roots = [ ];
          auto-format = false;
          language-servers = [ "scls" ];
        }
      ];
    };
    extraPackages = with pkgs; [
      nil
      markdown-oxide
    ];
  };

}