robin/ivy

my custom neovim config

git clone https://git.robinwobin.dev/robin/ivy

robinnix: use weavecd23569

main
1.1 KiB63 linesraw
1{ pkgs }:
2{
3  runtimeInputs = with pkgs; [
4    # keep-sorted start
5    deadnix
6    keep-sorted
7    nixfmt
8    statix
9    stylua
10    taplo
11    # keep-sorted end
12
13    (writeShellScriptBin "statix-fix" ''
14      for file in "$@"; do
15        ${lib.getExe statix} fix "$file"
16      done
17    '')
18  ];
19
20  settings = {
21    on-unmatched = "info";
22    tree-root-file = "flake.nix";
23
24    excludes = [
25      "npins/*"
26    ];
27
28    formatter = {
29      # keep-sorted start block=yes newline_separated=yes
30      deadnix = {
31        command = "deadnix";
32        includes = [ "*.nix" ];
33      };
34
35      keep-sorted = {
36        command = "keep-sorted";
37        includes = [ "*" ];
38      };
39
40      nixfmt = {
41        command = "nixfmt";
42        includes = [ "*.nix" ];
43      };
44
45      statix = {
46        command = "statix-fix";
47        includes = [ "*.nix" ];
48      };
49
50      stylua = {
51        command = "stylua";
52        includes = [ "*.lua" ];
53      };
54
55      taplo = {
56        command = "taplo";
57        options = "format";
58        includes = [ "*.toml" ];
59      };
60      # keep-sorted end
61    };
62  };
63}