🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: use treefmt

robin 44361e3a a36e7795

+68 -3
+1 -1
flake.nix
··· 53 53 generatedPackages // defaultPackage; 54 54 in 55 55 { 56 - formatter = forAllSystems (pkgs: pkgs.nixfmt-tree); 56 + formatter = forAllSystems (pkgs: pkgs.treefmt.withConfig (import ./treefmt.nix { inherit pkgs; })); 57 57 58 58 packages = forAllSystems (mkPackages true); 59 59
+3 -1
pkgs/ivy/package.nix
··· 91 91 ]; 92 92 93 93 grammarsNames = [ 94 + # keep-sorted start 94 95 "astro" 95 96 "bash" 96 97 "c" ··· 127 128 "json" 128 129 "jsonc" 129 130 "just" 131 + "latex" 130 132 "less" 131 133 "lua" 132 134 "luadoc" 133 135 "luau" 134 - "latex" 135 136 "make" 136 137 "markdown" 137 138 "markdown_inline" ··· 163 164 "yaml" 164 165 "yuck" 165 166 "zig" 167 + # keep-sorted end 166 168 ]; 167 169 in 168 170 wrapNeovim {
+1 -1
selene.toml
··· 1 - std="vim" 1 + std = "vim" 2 2 3 3 [rules] 4 4 mixed_table = "allow"
+63
treefmt.nix
··· 1 + { pkgs }: 2 + { 3 + runtimeInputs = with pkgs; [ 4 + # keep-sorted start 5 + deadnix 6 + keep-sorted 7 + nixfmt-rfc-style 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 + "pkgs/ivy-plugins/_sources/*" 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 + }