1
0
Fork 0

Use newer version of Helix with proper formatter argument passing

This commit is contained in:
Ethan Reece 2025-07-17 16:49:12 -05:00
parent b2778d0cba
commit 5353e05ed5
Signed by: me
GPG key ID: DD8CE04D5D8FF832
6 changed files with 77 additions and 9 deletions

View file

@ -2,11 +2,21 @@
#
# SPDX-License-Identifier: LGPL-3.0-or-later
{ flake-parts-lib, lib, ... }:
{
flake-parts-lib,
inputs,
lib,
...
}:
{
imports = [ ../../base ];
options.perSystem = flake-parts-lib.mkPerSystemOption (
{ config, pkgs, ... }:
{
config,
pkgs,
system,
...
}:
{
options.editors.helix = {
enable = lib.mkEnableOption "Helix";
@ -68,7 +78,7 @@
category = "󰤀 Helix";
}
];
packages = [ pkgs.helix ];
packages = [ inputs.helix.packages.${system}.helix ];
devshell.startup.helix_config.text = ''
mkdir -p .helix
${pkgs.uutils-coreutils-noprefix}/bin/rm -rf ./${helix.directory.name}

63
flake.lock generated
View file

@ -128,6 +128,25 @@
"type": "github"
}
},
"helix": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1752674572,
"narHash": "sha256-rCAwXmLQJQVHRpquWTQV1fDurHhf4beUzqDi6FVkdEo=",
"owner": "helix-editor",
"repo": "helix",
"rev": "2ee11a0a9d9b9951b5b64b54be05379cc030230b",
"type": "github"
},
"original": {
"owner": "helix-editor",
"repo": "helix",
"type": "github"
}
},
"lix": {
"flake": false,
"locked": {
@ -196,6 +215,22 @@
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1740560979,
"narHash": "sha256-Vr3Qi346M+8CjedtbyUevIGDZW8LcA1fTG0ugPY/Hic=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5135c59491985879812717f4c9fea69604e7f26f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1751949589,
"narHash": "sha256-mgFxAPLWw0Kq+C8P3dRrZrOYEQXOtKuYVlo9xvPntt8=",
@ -211,7 +246,7 @@
"type": "github"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1747958103,
"narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=",
@ -232,11 +267,33 @@
"devshell": "devshell",
"flake-parts": "flake-parts",
"git-hooks-nix": "git-hooks-nix",
"helix": "helix",
"lix-module": "lix-module",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_4",
"treefmt-nix": "treefmt-nix"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"helix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1740623427,
"narHash": "sha256-3SdPQrZoa4odlScFDUHd4CUPQ/R1gtH4Mq9u8CBiK8M=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "d342e8b5fd88421ff982f383c853f0fc78a847ab",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
@ -254,7 +311,7 @@
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1752055615,

View file

@ -17,6 +17,7 @@
};
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
helix.url = "github:helix-editor/helix";
};
outputs =
# https://flake.parts/options/flake-parts.html

View file

@ -24,7 +24,7 @@
command = "${config.treefmt.build.wrapper}/bin/treefmt";
args = [
"--stdin"
".nix"
"%{buffer_name}"
"--quiet"
];
};

View file

@ -24,7 +24,7 @@
command = "${config.treefmt.build.wrapper}/bin/treefmt";
args = [
"--stdin"
".toml"
"%{buffer_name}"
"--quiet"
];
};

View file

@ -24,7 +24,7 @@
command = "${config.treefmt.build.wrapper}/bin/treefmt";
args = [
"--stdin"
".yaml"
"%{buffer_name}"
"--quiet"
];
};