about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fnl/nvrc/pack.fnl2
-rw-r--r--fnl/nvrc/packs/typst-preview.fnl7
-rw-r--r--lazy-lock.json1
3 files changed, 10 insertions, 0 deletions
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index cf04ec7..87852a5 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -22,6 +22,8 @@
                                   :dependencies [(pack :nvim-lua/plenary.nvim)]})
 (pack! :p00f/clangd_extensions.nvim {:req :clangd
                                      :ft [:c :cpp :objc :objcpp]})
+(pack! :chomosuke/typst-preview.nvim {:req :typst-preview :ft :typst :version :0.1.*
+                                      :build #(. ((require :typst-preview) :update))})
 (pack! :mfussenegger/nvim-dap {:req :dap
                                :event :VeryLazy
                                :dependencies [(pack :nvim-lua/plenary.nvim)
diff --git a/fnl/nvrc/packs/typst-preview.fnl b/fnl/nvrc/packs/typst-preview.fnl
new file mode 100644
index 0000000..e7cb00e
--- /dev/null
+++ b/fnl/nvrc/packs/typst-preview.fnl
@@ -0,0 +1,7 @@
+(local {: setup} (require :typst-preview))
+
+(setup {
+       ; Use binaries installed on system
+       :dependencies_bin {
+         :typst-preview :typst-preview
+         :websocat :websocat}})
diff --git a/lazy-lock.json b/lazy-lock.json
index e9a4425..d7eabde 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -26,6 +26,7 @@
   "quickfix-reflector.vim": { "branch": "master", "commit": "6a6a9e28e1713b9e9db99eec1e6672e5666c01b9" },
   "rasmus.nvim": { "branch": "main", "commit": "f824de95d446686e479781c0c2b778c177da528f" },
   "rust-tools.nvim": { "branch": "master", "commit": "676187908a1ce35ffcd727c654ed68d851299d3e" },
+  "typst-preview.nvim": { "branch": "master", "commit": "5867db936576741f378b558a9d7428b928819df5" },
   "vim-dirvish": { "branch": "master", "commit": "b660af1fa07fe1d44d4eb3ea5242334f6c2766ca" },
   "vim-eunuch": { "branch": "master", "commit": "8fb3904be27b6b60d086f87c2570085902414069" },
   "vim-fugitive": { "branch": "master", "commit": "8d4e8d45385c63a0bf735fe1164772116bf0da0d" },