-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Hi, I'm really liking this plugin but I'm having some issues:
-
When saving multiple times, Tinymist crashes. I think there should be some timeout between the calls for tinymist, or I'm just misunderstanding what saving does(config included).
-
When I'm trying to import templates/packages from Typst Universe, only some of the functions appear, else I get "Unresolved Imports" error. For example, trying to use lineal-theme gives such error via their example typst code.
-
When trying to preview slides, I get an empty screen. Only once I managed to see the preview and I don't know what I did haha.
I'd love to know if there's any way I could help, maybe any log files I could provide?
Thanxies in advance!
typst.lua spec:
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "typst" },
},
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
tinymist = {
keys = {
{
"<leader>cP",
function()
local buf_name = vim.api.nvim_buf_get_name(0)
LazyVim.lsp.execute({
command = "tinymist.pinMain",
arguments = { buf_name },
})
end,
desc = "Pin main file",
},
},
single_file_support = true, -- Fixes LSP attachment in non-Git directories
settings = {
formatterMode = "typstyle",
exportPdf = "never",
},
},
},
},
},
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
typst = { "typstyle", lsp_format = "prefer" },
},
},
},
{
"chomosuke/typst-preview.nvim",
version = "*",
cmd = { "TypstPreview", "TypstPreviewToggle", "TypstPreviewUpdate" },
keys = {
{
"<leader>cp",
ft = "typst",
"<cmd>TypstPreviewToggle<cr>",
desc = "Toggle Typst Preview",
},
},
opts = {
dependencies_bin = {
tinymist = vim.fn.stdpath("data") .. "/mason/bin/tinymist.CMD",
},
},
},
{
"folke/ts-comments.nvim",
opts = {
lang = {
typst = { "// %s", "/* %s */" },
},
},
},
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels