From a09c54af5820eafbc00d734a37abac4c40ea4b5f Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 8 Aug 2022 13:52:11 +0200 Subject: Rename val-or-err to plugin --- fnl/util.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl') 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)))) -- cgit v1.2.3-70-g09d2