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/autopairs.fnl | |
parent | 3d53862b8c3f1ab19f4ac870079cc62fb886313d (diff) |
Add util fun for loading most plugin opts
Diffstat (limited to 'fnl/config/autopairs.fnl')
-rw-r--r-- | fnl/config/autopairs.fnl | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/fnl/config/autopairs.fnl b/fnl/config/autopairs.fnl index 6d7d466..f0aa2b6 100644 --- a/fnl/config/autopairs.fnl +++ b/fnl/config/autopairs.fnl @@ -1,21 +1,21 @@ ;; Autopairs for brackets and quote symbols. (module config.autopairs {autoload {: util}}) -(let [npairs (util.load-plugin :nvim-autopairs)] - (npairs.setup {:check_ts true - :ts_config {:lua [:string :source] - :javascript [:string :template_string] - :java false} - :disable_filetype [:TelescopePrompt :spectre_panel] - :fast_warp {:map :<M-e> - :chars ["{" "[" "(" "\"" "'"] - :pattern (string.gsub "[%'%\"%)%>%]%)%}%,]" "%s+" - "") - :check_comma true - :highlight :PmenuSel - :highlight_grey :LineNr - :offset 0 - :end_key "$" - :keys :qwertyuiopzxcvbnmasdfghjkl - :highlight :PmenuSel - :highlight_grey :LineNr}})) +(def- opts {:check_ts true + :ts_config {:lua [:string :source] + :javascript [:string :template_string] + :java false} + :disable_filetype [:TelescopePrompt :spectre_panel] + :fast_warp {:map :<M-e> + :chars ["{" "[" "(" "\"" "'"] + :pattern (string.gsub "[%'%\"%)%>%]%)%}%,]" "%s+" "") + :check_comma true + :highlight :PmenuSel + :highlight_grey :LineNr + :offset 0 + :end_key "$" + :keys :qwertyuiopzxcvbnmasdfghjkl + :highlight :PmenuSel + :highlight_grey :LineNr}}) + +(util.use-config :nvim-autopairs opts) |