diff options
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r-- | fnl/util.fnl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl index 9054f54..7222ebb 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -2,8 +2,13 @@ (module util {autoload {nvim aniseed.nvim}}) (def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start)) + (def num-plugins (length (vim.fn.readdir path))) +(defn load-config [] + (if (> num-plugins 3) + (require :config))) + (defn load-plugin [name] (let [(ok? val-or-err) (pcall require name)] (if ok? |