From 5f9aa7aa225d509e885f65e9a3614296be71fa21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 17 Oct 2024 13:04:30 +0200 Subject: [PATCH] feat: add command to measure vim startup time --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index ec41ffd..1beea8b 100644 --- a/flake.nix +++ b/flake.nix @@ -98,6 +98,11 @@ help = "wrapper for nixos-rebuild switch"; command = "sudo nixos-rebuild boot --flake . $@"; } + { + name = "vim-startuptime"; + help = "test vim startup time"; + command = "${pkgs.lib.getExe pkgs.hyperfine} --warmup 5 --prepare 'sleep 2' 'vim -c exit'"; + } ]; packages = with pkgs; [ stylua