about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/pack.fnl2
-rw-r--r--fnl/nvrc/packs/typst-preview.fnl7
2 files changed, 9 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}})