From f8539bc54ee7f3fae08528e494e62b3c123c7674 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 7 Apr 2022 22:33:15 +0200 Subject: refactor(autocmd): move to util --- fnl/util.fnl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fnl') 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? -- cgit v1.2.3-70-g09d2