about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-03-28 23:08:25 +0900
committersefidel <contact@sefidel.net>2024-03-28 23:08:25 +0900
commit0757c2a0abbac1d8fda1e51d964327cd62b1db4a (patch)
tree127d7e2a36ab68ff0e167128c20167cc1a258ec0 /fnl/nvrc
parent72ccd3c03a7c4ea34253d85c7901abcb8ded5fa6 (diff)
downloadnvimrc-0757c2a0abbac1d8fda1e51d964327cd62b1db4a.tar.gz
nvimrc-0757c2a0abbac1d8fda1e51d964327cd62b1db4a.zip
feat(packs): add typst-preview
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}})