From bf3bde8e4aed2f208c48c74c22a0daf4df9f292a Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 16 Feb 2024 00:14:41 +0100 Subject: [PATCH] nvim: update ts parsers --- home/programs/nvim/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/programs/nvim/default.nix b/home/programs/nvim/default.nix index 1f37500..55224be 100644 --- a/home/programs/nvim/default.nix +++ b/home/programs/nvim/default.nix @@ -403,5 +403,10 @@ in $VERBOSE_ECHO "Resetting loader" $DRY_RUN_CMD ${lib.getExe config.programs.neovim.finalPackage} -l <(echo "vim.loader.reset()") ''; + + activation.neovimTreeSitter = lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ '' + $VERBOSE_ECHO "Updating tree-sitter parsers" + $DRY_RUN_CMD ${lib.getExe config.programs.neovim.finalPackage} -c 'TSUpdateSync | q' --headless + ''; }; }