about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-27 08:54:20 +0900
committersefidel <contact@sefidel.net>2022-02-27 08:54:20 +0900
commit6efe58573cc658de42f9ad6911002e3e8eab189a (patch)
tree95d71495a8c0214c083d31e03744e5ee654cde44
parent1d27995957f02f5536ac1fd75c1175ce76237703 (diff)
downloadnvimrc-6efe58573cc658de42f9ad6911002e3e8eab189a.tar.gz
nvimrc-6efe58573cc658de42f9ad6911002e3e8eab189a.zip
feat(pack)!: remove defer_unpack
-rw-r--r--fnl/nvrc/macro/pack.fnl1
-rw-r--r--fnl/nvrc/pack.fnl2
-rw-r--r--fnl/nvrc/utils.fnl9
3 files changed, 2 insertions, 10 deletions
diff --git a/fnl/nvrc/macro/pack.fnl b/fnl/nvrc/macro/pack.fnl
index 3364cd2..7f76a0d 100644
--- a/fnl/nvrc/macro/pack.fnl
+++ b/fnl/nvrc/macro/pack.fnl
@@ -26,7 +26,6 @@
                          (if
                            (= k :req) (values :config (format "require('nvrc.packs.%s')" v))
                            (= k :init) (values :config (format "require('%s').setup({})" v))
-                           (= k :defer) (values :setup (format "require('nvrc.utils').defer_unpack('%s', 5)" v))
                            (values k v)))]
     (doto options
           (tset 1 identifier))))
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index f1d0d69..7593523 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -23,7 +23,7 @@
                                           (pack :hrsh7th/cmp-nvim-lsp-signature-help {:after :cmp-nvim-lsp})]})
 (pack! :simrat39/rust-tools.nvim {:init :rust-tools :ft :rust})
 (pack! :gpanders/editorconfig.nvim)
-(pack! :lewis6991/spaceless.nvim {:init :spaceless :defer :spaceless.nvim})
+(pack! :lewis6991/spaceless.nvim {:init :spaceless})
 (pack! :stefandtw/quickfix-reflector.vim {:ft :qf})
 
 (pack! :L3MON4D3/LuaSnip {:module :luasnip})
diff --git a/fnl/nvrc/utils.fnl b/fnl/nvrc/utils.fnl
index 6fd315a..a033009 100644
--- a/fnl/nvrc/utils.fnl
+++ b/fnl/nvrc/utils.fnl
@@ -46,11 +46,4 @@
     (local is-terminal (= (vim.fn.getbufvar cur-bufnr :&buftype) :terminal))
     (vim.cmd (or (and is-terminal "bd! #") "silent! confirm bd #"))))
 
-(fn defer_unpack [pack after]
-  (when pack
-    (set-forcibly! after (or after 0))
-    (vim.defer_fn (fn []
-                    ((. (require :packer) :loader) pack))
-                  after)))
-
-{: merge : del_buf : defer_unpack}
+{: merge : del_buf}