diff --git a/lua/lazyvim/plugins/extras/lang/typst.lua b/lua/lazyvim/plugins/extras/lang/typst.lua index 63d8b1ae..adea7cdb 100644 --- a/lua/lazyvim/plugins/extras/lang/typst.lua +++ b/lua/lazyvim/plugins/extras/lang/typst.lua @@ -12,46 +12,22 @@ return { }, }, - { - "williamboman/mason.nvim", - opts = { - ensure_installed = { "typstyle" }, - }, - }, - { "neovim/nvim-lspconfig", opts = { servers = { - tinymist = {}, + tinymist = { + settings = { + formatterMode = "typstyle", + }, + }, }, }, }, - { - "stevearc/conform.nvim", - optional = true, - opts = { - formatters_by_ft = { - typst = { "typstyle" }, - }, - }, - }, - - { - "nvimtools/none-ls.nvim", - optional = true, - opts = function(_, opts) - local nls = require("null-ls") - opts.sources = vim.list_extend(opts.sources or {}, { - nls.builtins.formatting.typstyle, - }) - end, - }, - { "chomosuke/typst-preview.nvim", - cmd = { "TypstPreview" }, + cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" }, build = function() require("typst-preview").update() end, @@ -65,7 +41,7 @@ return { }, opts = { dependencies_bin = { - ["typst-preview"] = "tinymist", + tinymist = "tinymist", }, }, },