From e12bf77a9fd8ebe81347532528c084d3a07c366a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Jul 2022 23:38:55 +0200 Subject: Add util fun for loading most plugin opts --- fnl/config/comment.fnl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fnl/config/comment.fnl') diff --git a/fnl/config/comment.fnl b/fnl/config/comment.fnl index f6e4972..d4256fe 100644 --- a/fnl/config/comment.fnl +++ b/fnl/config/comment.fnl @@ -17,6 +17,7 @@ (internal.calculate_commentstring {:key (get-type ctx U) :location (get-location ctx U)}))) -(let [nvim-comment (util.load-plugin :Comment)] - (nvim-comment.setup {:pre_hook (fn [ctx] - (pre-hook ctx))})) +(def- opts {:pre_hook (fn [ctx] + (pre-hook ctx))}) + +(util.use-config :Comment opts) -- cgit v1.2.3-70-g09d2