ported the lua, port is complete, I think.
This commit is contained in:
parent
7c9d33f7bb
commit
24a7f2cda3
26 changed files with 810 additions and 868 deletions
14
lua/plugins/preview/typst.lua
Normal file
14
lua/plugins/preview/typst.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"typst-preview.nvim",
|
||||
for_cat = "typst",
|
||||
ft = "typst",
|
||||
cmd = { "TypstPreview", "TypstPreviewStop", "TypstPreviewToggle", },
|
||||
keys = {
|
||||
{ "<leader>ptp", "<cmd>TypstPreview <CR>", mode = { "n" }, noremap = true, desc = "typst preview" },
|
||||
{ "<leader>pts", "<cmd>TypstPreviewStop <CR>", mode = { "n" }, noremap = true, desc = "typst preview stop" },
|
||||
{ "<leader>ptt", "<cmd>TypstPreviewToggle <CR>", mode = { "n" }, noremap = true, desc = "typst preview toggle" },
|
||||
},
|
||||
after = function()
|
||||
require('typst-preview').setup {}
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue