feat(pack): replace typst_lsp with tinymist in typst pack
#1248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📑 Description
With this PR,
typst_lspin thetypstpack is replaced bytinymist.tinymistis a more actively-developed language server for the Typst language. Since typst/typst#5193,tinymisthas replacedtypst_lspto become the recommended LSP implementation in Typst's official docs.ℹ Additional Information
Also, with this change, the user can now directly use the Mason-installed
tinymistas the preview backend inchomosuke/typst-preview.nvim, without having to separately install atypst-previewserver, thanks to the fact that this functionality has recently been successfully integrated intotinymistitself.Tested locally (since over 5 months ago) with the following override:
{ "williamboman/mason-lspconfig.nvim", opts = function(_, opts) opts.ensure_installed = require("utils").list_remove_all(opts.ensure_installed, { "typst_lsp" }) opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "tinymist" }) end, }, { "chomosuke/typst-preview.nvim", opts = { dependencies_bin = { tinymist = "tinymist", -- This is because `websocat` is in my `PATH` as well, -- but it might not generally apply to everyone. websocat = "websocat", }, }, },