aboutsummaryrefslogtreecommitdiff
path: root/lua/user/autopairs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/autopairs.lua')
-rw-r--r--lua/user/autopairs.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/lua/user/autopairs.lua b/lua/user/autopairs.lua
index 577e571..fc39d2e 100644
--- a/lua/user/autopairs.lua
+++ b/lua/user/autopairs.lua
@@ -11,9 +11,19 @@ npairs.setup {
javascript = { "string", "template_string" },
java = false,
},
+ map = "<M-e>",
+ pairs_map = {
+['<'] = '>',
+},
disable_filetype = { "TelescopePrompt", "spectre_panel" },
+ disable_in_macro = true,
+ disable_in_visualblock = true,
+ enalbe_moveright = true,
+ enable_afterquote = true, -- add bracket pairs after quote
+ enable_check_bracket_line = true, --- check bracket in same line
+ enable_bracket_in_quote = true, --
+ break_undo = true, -- switch for basic rule break undo sequence
fast_wrap = {
- map = "<M-e>",
chars = { "{", "[", "(", '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""),
offset = 0, -- Offset from pattern match