diff options
-rw-r--r-- | fnl/config/comment.fnl (renamed from fnl/config/ncomment.fnl) | 6 | ||||
-rw-r--r-- | fnl/config/init.fnl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fnl/config/ncomment.fnl b/fnl/config/comment.fnl index e6a77d1..92df966 100644 --- a/fnl/config/ncomment.fnl +++ b/fnl/config/comment.fnl @@ -1,5 +1,5 @@ ;; Language aware commenting. -(module config.ncomment +(module config.comment {autoload {util util}}) (defn- get-type [ctx U] @@ -22,7 +22,7 @@ {:key (get-type ctx U) :location (get-location ctx U)}))) -(let [ncomment (util.load-plugin :Comment)] - (ncomment.setup +(let [nvim-comment (util.load-plugin :Comment)] + (nvim-comment.setup {:pre_hook (fn [ctx] (pre-hook ctx))})) diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl index be81549..7013719 100644 --- a/fnl/config/init.fnl +++ b/fnl/config/init.fnl @@ -13,7 +13,7 @@ config.gitsigns config.hop config.lualine - config.ncomment + config.comment config.nvim-tree config.orgmode config.project |