fix(typst): prevent redundant download of tinymist binary in typst-preview

This commit is contained in:
Vo Quang Chien 2024-11-02 16:50:31 +07:00
parent 1ea189f9bb
commit 4a7e80c4aa

View file

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