diff --git a/lua/znvim/plugins/init.lua b/lua/znvim/plugins/init.lua index db2a43d..2533fd8 100644 --- a/lua/znvim/plugins/init.lua +++ b/lua/znvim/plugins/init.lua @@ -199,9 +199,21 @@ return { end end, }, - } - + }, + { + "https://github.com/chomosuke/typst-preview.nvim", + ft = "typst", + version = "1.*", + keys = { + { "p", "TypstPreview document", desc = "open typst preview document", }, + { "ps", "TypstPreview slide", desc = "open typst preview slide", }, + { "s", "TypstPreviewStop", desc = "stop typst preview", }, + { "", "TypstPreviewSyncCursor", desc = "sync cursor", }, + { "f", "TypstPreviewFollowCursorToggle", desc = "toggle follow cursor", }, + }, + opts = {}, -- lazy.nvim will implicitly calls `setup {}` + }, }