Skip to content

Commit 6c4c080

Browse files
authored
feat(pack): replace typst_lsp with tinymist in typst pack (#1248)
1 parent 682d77f commit 6c4c080

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lua/astrocommunity/pack/typst/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This plugin pack does the following:
44

55
- Add `typst.vim` for syntax
6-
- Add `typst_lsp` language server
6+
- Add `tinymist` language server
77
- Add `typst-preview.nvim` plugin
88

99
_Note_: To start the preview - Run TypstPreview

lua/astrocommunity/pack/typst/init.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ return {
33
{
44
"williamboman/mason-lspconfig.nvim",
55
opts = function(_, opts)
6-
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst_lsp" })
6+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" })
77
end,
88
},
99
{
1010
"WhoIsSethDaniel/mason-tool-installer.nvim",
1111
optional = true,
1212
opts = function(_, opts)
13-
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "typst-lsp" })
13+
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" })
1414
end,
1515
},
1616
{
1717
"chomosuke/typst-preview.nvim",
1818
cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" },
1919
build = function() require("typst-preview").update() end,
20-
opts = {},
20+
opts = {
21+
dependencies_bin = {
22+
tinymist = "tinymist",
23+
},
24+
},
2125
},
2226
}

0 commit comments

Comments
 (0)