diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-12 21:15:44 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-12 21:15:44 +0200 |
| commit | 82779fc7fbb42f5f97bf5840d3248ad84a63c095 (patch) | |
| tree | 7d8327aa0f7eeea7fed99b69c554eb19c671ef29 /fnl/config/autopairs.fnl | |
| parent | 4ec6fb5118f95f00dbacdcf0470e0f9fffd86abc (diff) | |
| parent | c561be2e3e71c226985640320559e3bf5e1c7034 (diff) | |
feat(fennel): migration
Diffstat (limited to 'fnl/config/autopairs.fnl')
| -rw-r--r-- | fnl/config/autopairs.fnl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fnl/config/autopairs.fnl b/fnl/config/autopairs.fnl new file mode 100644 index 0000000..2b175fa --- /dev/null +++ b/fnl/config/autopairs.fnl @@ -0,0 +1,21 @@ +;; Autopairs for brackets and quote symbols. +(module config.autopairs {autoload {util 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}})) |