feat(typst): add Typst preview keymap to typst-preview.nvim

Co-authored-by: Jose Storopoli <jose@storopoli.io>
This commit is contained in:
Võ Quang Chiến 2024-09-19 05:07:40 +07:00 committed by GitHub
parent f67fe0319b
commit f498290e11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,14 @@ return {
build = function()
require("typst-preview").update()
end,
keys = {
{
"<leader>cp",
ft = "typst",
"<cmd>TypstPreviewToggle<cr>",
desc = "Typst Preview",
},
},
opts = {
dependencies_bin = {
["typst-preview"] = "tinymist",