diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-03 21:21:58 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-03 21:21:58 +0200 |
commit | 2f5d72227b27d34a5466e52cf7a900c18ebdd2d5 (patch) | |
tree | 286d79e2b53b4b9453a1546dd598a3a1a037efba | |
parent | 0254669b97bfb503a407d5203cb773a87adc5e36 (diff) |
feat(autopairs): add fnl config
-rw-r--r-- | fnl/config/autopairs.fnl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fnl/config/autopairs.fnl b/fnl/config/autopairs.fnl new file mode 100644 index 0000000..289db34 --- /dev/null +++ b/fnl/config/autopairs.fnl @@ -0,0 +1,26 @@ +;; Autopairs for brackets and quote symbols. +(module config.autopairs + {autoload {util util}}) + +(let [(ok? npairs) util.load-plugin :nvim-autopairs] + (when ok? + (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}})) |