feat: add command to measure vim startup time

This commit is contained in:
Moritz Böhme 2024-10-17 13:04:30 +02:00
parent 840d3d67d9
commit 5f9aa7aa22
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -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