From f498290e11dfd868f0d4d1929df585242c0ebaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=B5=20Quang=20Chi=E1=BA=BFn?= Date: Thu, 19 Sep 2024 05:07:40 +0700 Subject: [PATCH] feat(typst): add Typst preview keymap to `typst-preview.nvim` Co-authored-by: Jose Storopoli --- lua/lazyvim/plugins/extras/lang/typst.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/typst.lua b/lua/lazyvim/plugins/extras/lang/typst.lua index 0357d70a..63d8b1ae 100644 --- a/lua/lazyvim/plugins/extras/lang/typst.lua +++ b/lua/lazyvim/plugins/extras/lang/typst.lua @@ -55,6 +55,14 @@ return { build = function() require("typst-preview").update() end, + keys = { + { + "cp", + ft = "typst", + "TypstPreviewToggle", + desc = "Typst Preview", + }, + }, opts = { dependencies_bin = { ["typst-preview"] = "tinymist",