summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-08 13:52:11 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-08 13:52:11 +0200
commita09c54af5820eafbc00d734a37abac4c40ea4b5f (patch)
tree423c55440abf41b618d21ee8d1d49631700ba53e
parent98f906b644a24dfb10b2eaa56ccc7c99c94c876f (diff)
Rename val-or-err to plugin
-rw-r--r--fnl/util.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/fnl/util.fnl b/fnl/util.fnl
index 555768c..a80f0eb 100644
--- a/fnl/util.fnl
+++ b/fnl/util.fnl
@@ -34,9 +34,9 @@
(require :config)))
(defn load-plugin [name]
- (let [(ok? val-or-err) (pcall require name)]
+ (let [(ok? plugin) (pcall require name)]
(if ok?
- val-or-err
+ plugin
(vim.notify (.. "Could not load config: " val-or-err)
vim.log.levels.WARN))))