From 6efe58573cc658de42f9ad6911002e3e8eab189a Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 27 Feb 2022 08:54:20 +0900 Subject: feat(pack)!: remove defer_unpack --- fnl/nvrc/macro/pack.fnl | 1 - fnl/nvrc/pack.fnl | 2 +- fnl/nvrc/utils.fnl | 9 +-------- 3 files changed, 2 insertions(+), 10 deletions(-) (limited to 'fnl') 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} -- cgit 1.4.1