diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 23:38:55 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-19 23:38:55 +0200 |
commit | e12bf77a9fd8ebe81347532528c084d3a07c366a (patch) | |
tree | 9ef0b0c30ef01c7168edd6cb18323a8d3c273430 /fnl/config/comment.fnl | |
parent | 3d53862b8c3f1ab19f4ac870079cc62fb886313d (diff) |
Add util fun for loading most plugin opts
Diffstat (limited to 'fnl/config/comment.fnl')
-rw-r--r-- | fnl/config/comment.fnl | 7 |
1 files changed, 4 insertions, 3 deletions
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) |