From 5a7f10659e09c1e1febb3846d893a7b64e708eb4 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Tue, 12 Nov 2024 10:41:41 +0100 Subject: [PATCH] fix(home): helix formatters --- common/home.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/common/home.nix b/common/home.nix index c7dbc9b..9b030bf 100644 --- a/common/home.nix +++ b/common/home.nix @@ -7,6 +7,7 @@ home.stateVersion = "24.05"; home.packages = with pkgs; [ + jdt-language-server python3 swaybg catimg @@ -24,16 +25,13 @@ gnumake man-pages man-pages-posix - clang-tools gdb gcc valgrind - nixfmt-classic cloc nodejs_22 texliveFull bash-language-server - shfmt libnotify (nerdfonts.override { fonts = [ "Hack" ]; }) @@ -97,17 +95,22 @@ { name = "nix"; auto-format = true; - formatter.command = "nixfmt"; + formatter.command = "${pkgs.nixfmt-classic}/bin/nixfmt"; } { name = "c"; auto-format = true; - formatter.command = "clang-format"; + formatter.command = "${pkgs.clang-tools}/bin/clang-format"; } { name = "bash"; auto-format = true; - formatter.command = "shfmt"; + formatter.command = "${pkgs.shfmt}/bin/shfmt"; + } + { + name = "java"; + auto-format = true; + formatter.command = "${pkgs.google-java-format}/bin/google-java-format"; } ]; };