summaryrefslogtreecommitdiff
path: root/fnl/config/ncomment.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
commit71d538630b226da37e4ef21c5a84d6fad5f55421 (patch)
tree5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/ncomment.fnl
parentfa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff)
fix(load plugin): correct loading err
Diffstat (limited to 'fnl/config/ncomment.fnl')
-rw-r--r--fnl/config/ncomment.fnl9
1 files changed, 4 insertions, 5 deletions
diff --git a/fnl/config/ncomment.fnl b/fnl/config/ncomment.fnl
index 68d4c97..b71fd1e 100644
--- a/fnl/config/ncomment.fnl
+++ b/fnl/config/ncomment.fnl
@@ -19,8 +19,7 @@
:key (get-type ctx U)
:location (get-location ctx U)})))
-(let [(ok? ncomment) util.load-plugin :Comment]
- (when ok?
- (ncomment.setup
- {:pre_hook (fn [ctx]
- (pre-hook ctx))})))
+(let [ncomment (util.load-plugin :Comment)]
+ (ncomment.setup
+ {:pre_hook (fn [ctx]
+ (pre-hook ctx))}))