From 4a7e80c4aa3a978712e994c4bcb44160090d8945 Mon Sep 17 00:00:00 2001 From: Vo Quang Chien Date: Sat, 2 Nov 2024 16:50:31 +0700 Subject: [PATCH] fix(typst): prevent redundant download of tinymist binary in typst-preview --- lua/lazyvim/plugins/extras/lang/typst.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/typst.lua b/lua/lazyvim/plugins/extras/lang/typst.lua index a61d1cb7..49645ca1 100644 --- a/lua/lazyvim/plugins/extras/lang/typst.lua +++ b/lua/lazyvim/plugins/extras/lang/typst.lua @@ -38,8 +38,10 @@ return { { "chomosuke/typst-preview.nvim", cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" }, - build = function() - require("typst-preview").update() + build = function(plugin) + local typst_preview = require("typst-preview") + typst_preview.setup(plugin.opts) + typst_preview.update() end, keys = { {