summaryrefslogtreecommitdiff
path: root/fnl/util.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-06 15:27:11 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-06 15:27:11 +0200
commit73ead4fccda383c099d92187412a5c1b8858a079 (patch)
treedf23d70702273443fa4f5b63000889d876773362 /fnl/util.fnl
parent186457c467a10ad5f587a98ded919b159e3947b2 (diff)
Move autocmd fn to util
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r--fnl/util.fnl2
1 files changed, 2 insertions, 0 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index 555768c..a8ea011 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -1,6 +1,8 @@
;; Utility functions.
(module util {autoload {a aniseed.core nvim aniseed.nvim : packer}})
+(defn autocmd [event opts] (nvim.create_autocmd event opts))
+
(def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start))
(def- installed-plugins (vim.fn.readdir path))