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/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}