From a24e2615211bc0597b62a9deee8de3adcd37f361 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 8 Oct 2024 12:21:12 +0100 Subject: [PATCH 1/3] Update roles/home/helix.nix --- roles/home/helix.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index 0c8c3a6..54e3cb6 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -85,6 +85,7 @@ in ruff = {enabled = true} rope = {enabled = true} mypy = {enabled = true} + rope_autoimport = {enabled = true} [[language]] name = "bash" From e084734e4ab27473891e348714cfc0abeaacebe7 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 8 Oct 2024 12:27:27 +0100 Subject: [PATCH 2/3] Update roles/home/helix.nix --- roles/home/helix.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index 54e3cb6..3989836 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -91,6 +91,10 @@ in name = "bash" formatter = { command = "shfmt", args = ["-s", "-ci", "-sr"] } + [[language]] + name = "python" + formatter = { command = "black", args = ["-", "--quiet"] } + [[language]] name = "go" language-servers = ["gopls", "golangci-lint-langserver"] From 2db9c318a168d4a343f344f2678338dd1c4d3f29 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 14 Nov 2024 11:17:26 +0000 Subject: [PATCH 3/3] Update roles/home/zsh.nix --- roles/home/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index 0d7410f..8f272b0 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -1,5 +1,8 @@ { pkgs, lib, ... }: +let + commitFunctions = pkgs.writeTextDir "bin" (builtins.readFile ./scripts/commits.sh); +in { home.packages = with pkgs; [ any-nix-shell ]; @@ -22,6 +25,8 @@ any-nix-shell zsh --info-right | source /dev/stdin source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh ${if pkgs.stdenv.isDarwin then "export PATH=$PATH:/opt/homebrew/bin" else ""} + + source ${commitFunctions}/bin/commits.sh ''; }; }