From a012ce350b4b9746fc9b2e96b564bc80fc143ac3 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 20 Dec 2021 22:29:36 +0100 Subject: [PATCH] Automatically run TSUpdateSync --- home.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 062e135..4b721ef 100644 --- a/home.nix +++ b/home.nix @@ -59,9 +59,12 @@ printf '\nRemoving luacache file: ' rm -f "$HOME/.cache/nvim/luacache" echo "Done" + echo 'Running TSUpdateSync ...' + nvim -c 'try | execute "TSUpdateSync" | echo "Done" | catch /.*/ | echo "Command not found" | endtry | q' --headless + printf '\n' ''; - reportChanges = lib.hm.dag.entryAfter [ "onFilesChange" "installPackages" "copyFonts" ] '' + reportChanges = lib.hm.dag.entryAfter [ "updateAppCaches" ] '' nix store diff-closures $oldGenPath $newGenPath ''; };