From 52019f52eeef93540642e9f5f7ab5a537f23bd3c Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Sat, 25 Jan 2025 16:59:16 +0800 Subject: [PATCH] add just formatter for helix and format Justfile --- Justfile | 6 ++++-- home/modules/helix/default.nix | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 2be5b8a..0167661 100644 --- a/Justfile +++ b/Justfile @@ -5,11 +5,13 @@ default: @just --list switch specialisation=DEFAULT_SPECIALISATION: - nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }} + nh os switch {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }} + update: nix flake update | spacer + push host target: - nixos-rebuild switch --flake {{FLAKE_HOME}}#{{host}} --target-host {{target}} | spacer + nixos-rebuild switch --flake {{ FLAKE_HOME }}#{{ host }} --target-host {{ target }} | spacer alias s := switch alias u := update diff --git a/home/modules/helix/default.nix b/home/modules/helix/default.nix index 267407c..ddb2553 100644 --- a/home/modules/helix/default.nix +++ b/home/modules/helix/default.nix @@ -48,6 +48,15 @@ }; }; language = [ + { + name = "just"; + formatter = { + command = "just"; + args = [ + "--dump" + ]; + }; + } { name = "nix"; formatter = {