Skip to content

Commit

Permalink
feat(typst): added typst-preview.nvim plugin support (#907)
Browse files Browse the repository at this point in the history
* feat(pack): added typest-preview.nvim plugin support

Closes #873

* Update README.md

* Update README.md

* Update README.md

* Revert "Update README.md"

This reverts commit 8c886c1.

* lazy loading on typst filetypes

* lazy loading on commands
  • Loading branch information
Std-Enigma committed Apr 22, 2024
1 parent 41f7a6a commit 1ad2d81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
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.*",
build = function() require("typst-preview").update() end,
opts = {},
},
}

0 comments on commit 1ad2d81

Please sign in to comment.