diff options
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r-- | fnl/util.fnl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl index 47f9d10..0e90396 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -1,20 +1,19 @@ ;; Utility functions. -(module util {autoload {a aniseed.core - nvim aniseed.nvim - : packer - : plugins}}) +(module util {autoload {a aniseed.core nvim aniseed.nvim : packer}}) + +(def- plugins (require :plugins)) (def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start)) (defn- num-plugins [] (var i 0) - (each [_ _ (pairs plugins.plugins)] + (each [_ _ (pairs plugins)] (set i (+ i 1))) i) (defn- num-installed-plugins [] (length (vim.fn.readdir path))) (defn- install [] (packer.startup (fn [use] - (each [plugin opts (pairs plugins.plugins)] + (each [plugin opts (pairs plugins)] (use (a.assoc opts 1 plugin)))))) (defn load-plugins [] (install) |