diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-08 13:52:11 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-08 13:52:11 +0200 |
commit | a09c54af5820eafbc00d734a37abac4c40ea4b5f (patch) | |
tree | 423c55440abf41b618d21ee8d1d49631700ba53e /fnl | |
parent | 98f906b644a24dfb10b2eaa56ccc7c99c94c876f (diff) |
Rename val-or-err to plugin
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/util.fnl | 4 |
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)))) |