diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 23:56:08 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 23:56:08 +0200 |
commit | d135c0f65a7f0703dd3428e8629396f4e2710ec7 (patch) | |
tree | 7b791307b1c5e75d04b0eb372c4abd118d2c5b57 /fnl/util.fnl | |
parent | 95944c1bde19418e9b8aa1c91622067945c7b1ea (diff) |
fix(load config): pre compute num plugins
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r-- | fnl/util.fnl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl index e6b4d9f..8bb3754 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -1,7 +1,8 @@ ;; Utility functions. (module util {autoload {nvim aniseed.nvim}}) -(defn autocmd [name opts] (nvim.ex.create_autocmd name opts)) +(def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start)) +(def num-plugins (length (vim.fn.readdir path))) (defn load-plugin [name] (let [(ok? val-or-err) (pcall require name)] |