summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:33:15 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:33:15 +0200
commitf8539bc54ee7f3fae08528e494e62b3c123c7674 (patch)
tree6c2a05103373acc6d4e7d79ef3aff743ecf86897
parent71d538630b226da37e4ef21c5a84d6fad5f55421 (diff)
refactor(autocmd): move to util
-rw-r--r--fnl/util.fnl3
1 files changed, 3 insertions, 0 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index febecbd..5cc0367 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -1,6 +1,9 @@
;; Utility functions.
(module util)
+(defn autocmd [name opts]
+ (nvim.create_autocmd name opts))
+
(defn load-plugin [name]
(let [(ok? val-or-err) (pcall require name)]
(if ok?