diff --git a/lua/astrocommunity/pack/typst/README.md b/lua/astrocommunity/pack/typst/README.md index 420fa0a39..3047233f2 100644 --- a/lua/astrocommunity/pack/typst/README.md +++ b/lua/astrocommunity/pack/typst/README.md @@ -2,6 +2,8 @@ This plugin pack does the following: -- Add `typst,vim` for syntax -- Add `typst_lsp` language server +- Add `typst,vim` for syntax +- Add `typst_lsp` language server +- Add `typst-preview.nvim` plugin +_Note_: To start the preview - Run TypstPreview diff --git a/lua/astrocommunity/pack/typst/init.lua b/lua/astrocommunity/pack/typst/init.lua index 0e2f95c18..2ceab7eaf 100644 --- a/lua/astrocommunity/pack/typst/init.lua +++ b/lua/astrocommunity/pack/typst/init.lua @@ -13,4 +13,11 @@ return { opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst-lsp" }) end, }, + { + "chomosuke/typst-preview.nvim", + cmd = { "TypstPreview", "TypstPreviewToggle" }, + version = "0.1.*", + build = function() require("typst-preview").update() end, + opts = {}, + }, }