{ pkgs, ... }:
{
  home.packages = with pkgs; [ typst ];
  programs.nixvim.plugins.lsp.servers.tinymist = {
    enable = true;
    rootDir = ''
      require 'lspconfig.util'.root_pattern('.git', 'template.typ')
    '';
  };
}