summaryrefslogtreecommitdiff
path: root/fnl/util.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/util.fnl')
-rw-r--r--fnl/util.fnl15
1 files changed, 7 insertions, 8 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index 18345ad..e6b4d9f 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -1,12 +1,11 @@
;; Utility functions.
-(module util
- {autoload {nvim aniseed.nvim}})
+(module util {autoload {nvim aniseed.nvim}})
-(defn autocmd [name opts]
- (nvim.ex.create_autocmd name opts))
+(defn autocmd [name opts] (nvim.ex.create_autocmd name opts))
(defn load-plugin [name]
- (let [(ok? val-or-err) (pcall require name)]
- (if ok?
- val-or-err
- (vim.notify (.. "Could not load config: " val-or-err) vim.log.levels.WARN))))
+ (let [(ok? val-or-err) (pcall require name)]
+ (if ok?
+ val-or-err
+ (vim.notify (.. "Could not load config: " val-or-err)
+ vim.log.levels.WARN))))