summaryrefslogtreecommitdiff
path: root/fnl/util.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r--fnl/util.fnl3
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)]