From 2f5d72227b27d34a5466e52cf7a900c18ebdd2d5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 3 Apr 2022 21:21:58 +0200 Subject: feat(autopairs): add fnl config --- fnl/config/autopairs.fnl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 fnl/config/autopairs.fnl 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 "" + :chars [ "{" "[" "(" '"' "'" ] + :pattern string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", "") + :check_comma true + :highlight :PmenuSel + :highlight_grey :LineNr + :offset 0 + :end_key $ + :keys qwertyuiopzxcvbnmasdfghjkl + :highlight PmenuSel + :highlight_grey LineNr}})) -- cgit v1.2.3-70-g09d2