Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typst): added typst-preview.nvim plugin support #907

Merged
merged 7 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lua/astrocommunity/pack/typst/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions lua/astrocommunity/pack/typst/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.*",
Std-Enigma marked this conversation as resolved.
Show resolved Hide resolved
build = function() require("typst-preview").update() end,
opts = {},
},
}
Loading