From 55c7d11d5ea2403f58c3f257ce0734030f9d4d08 Mon Sep 17 00:00:00 2001 From: zymon Date: Sat, 11 Jan 2025 19:56:13 +0100 Subject: [PATCH] typst preview --- lua/znvim/plugins/init.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 {}` + }, }