feat: add command to measure vim startup time

nixos
Moritz Böhme 2024-10-17 13:04:30 +02:00
parent 840d3d67d9
commit 5f9aa7aa22
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@
help = "wrapper for nixos-rebuild switch"; help = "wrapper for nixos-rebuild switch";
command = "sudo nixos-rebuild boot --flake . $@"; 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; [ packages = with pkgs; [
stylua stylua