This is my flakeless configuration for macOS using nix
{ pkgs, ... }:

pkgs.vimUtils.buildVimPlugin {
  name = "typst-preview.nvim";
  src = pkgs.fetchFromGitHub {
    owner = "chomosuke";
    repo = "typst-preview.nvim";
    rev = "b0fed1d42733143bc8a0734a718c6944e606607b";
    hash = "sha256-MAS3+4JDs0kgXxRvlLsbCtgRN0WSvxPwbtMVHdAsYlc=";
  };
}