summaryrefslogtreecommitdiff
path: root/fnl/config/autopairs.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
commit71d538630b226da37e4ef21c5a84d6fad5f55421 (patch)
tree5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/autopairs.fnl
parentfa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff)
fix(load plugin): correct loading err
Diffstat (limited to 'fnl/config/autopairs.fnl')
-rw-r--r--fnl/config/autopairs.fnl43
1 files changed, 21 insertions, 22 deletions
diff --git a/fnl/config/autopairs.fnl b/fnl/config/autopairs.fnl
index 289db34..8d7025c 100644
--- a/fnl/config/autopairs.fnl
+++ b/fnl/config/autopairs.fnl
@@ -2,25 +2,24 @@
(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}}))
+(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}})