From 987f698c932ad75c461b81e035d5eb1788051dd5 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sun, 24 Apr 2022 20:10:28 +0200 Subject: refactor(init): clean up --- fnl/util.fnl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fnl/util.fnl') 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? -- cgit v1.2.3-70-g09d2