diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-07 22:33:15 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-07 22:33:15 +0200 |
commit | f8539bc54ee7f3fae08528e494e62b3c123c7674 (patch) | |
tree | 6c2a05103373acc6d4e7d79ef3aff743ecf86897 | |
parent | 71d538630b226da37e4ef21c5a84d6fad5f55421 (diff) |
refactor(autocmd): move to util
-rw-r--r-- | fnl/util.fnl | 3 |
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? |