summaryrefslogtreecommitdiff
path: root/fnl/config/autopairs.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 18:52:34 +0200
commitb74c9dd22e632bbe720587db92966c4d6811b766 (patch)
treef68e5bb862fd5a800f86852e535d29984f461cb3 /fnl/config/autopairs.fnl
parent274648011686b1c822e63b03bdcc6f2ce8e9b41e (diff)
style: format with fnlfmt
Diffstat (limited to 'fnl/config/autopairs.fnl')
-rw-r--r--fnl/config/autopairs.fnl40
1 files changed, 18 insertions, 22 deletions
diff --git a/fnl/config/autopairs.fnl b/fnl/config/autopairs.fnl
index b2d0475..2b175fa 100644
--- a/fnl/config/autopairs.fnl
+++ b/fnl/config/autopairs.fnl
@@ -1,25 +1,21 @@
;; Autopairs for brackets and quote symbols.
-(module config.autopairs
- {autoload {util util}})
+(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}}))
+ (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}}))