Skip to content

Commit

Permalink
feat(pack): replace typst_lsp with tinymist in typst pack (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l authored Oct 23, 2024
1 parent 682d77f commit 6c4c080
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/typst/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This plugin pack does the following:

- Add `typst.vim` for syntax
- Add `typst_lsp` language server
- Add `tinymist` language server
- Add `typst-preview.nvim` plugin

_Note_: To start the preview - Run TypstPreview
10 changes: 7 additions & 3 deletions lua/astrocommunity/pack/typst/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@ return {
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst_lsp" })
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" })
end,
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst-lsp" })
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" })
end,
},
{
"chomosuke/typst-preview.nvim",
cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" },
build = function() require("typst-preview").update() end,
opts = {},
opts = {
dependencies_bin = {
tinymist = "tinymist",
},
},
},
}

0 comments on commit 6c4c080

Please sign in to comment.