docs: replace string.gsub with [=[...]=] string

This commit is contained in:
alohaia 2022-05-25 21:04:34 +08:00 committed by windwp
parent aea913109d
commit b9cc0a26f3
4 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@ require('nvim-autopairs').setup{}
local disable_filetype = { "TelescopePrompt" }
local disable_in_macro = false -- disable when recording or executing a macro
local disable_in_visualblock = false -- disable when insert after visual block mode
local ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", "")
local ignored_next_char = [=[[%w%%%'%[%"%.]]=]
local enable_moveright = true
local enable_afterquote = true -- add bracket pairs after quote
local enable_check_bracket_line = true --- check bracket in same line
@ -301,7 +301,7 @@ npairs.setup({
fast_wrap = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
check_comma = true,

View File

@ -25,7 +25,7 @@ DEFAULT VALUES *nvim-autopairs-default-values*
local disable_filetype = { "TelescopePrompt" }
local disable_in_macro = false -- disable when recording or executing a macro
local disable_in_visualblock = false -- disable when insert after visual block mode
local ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", "")
local ignored_next_char = [=[[%w%%%'%[%"%.]]=]
local enable_moveright = true
local enable_afterquote = true -- add bracket pairs after quote
local enable_check_bracket_line = true --- check bracket in same line
@ -328,7 +328,7 @@ FASTWRAP ~
fast_wrap = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
check_comma = true,

View File

@ -19,7 +19,7 @@ local default = {
disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
disable_in_macro = false,
disable_in_visualblock = false,
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]], '%s+', ''),
ignored_next_char = [=[[%w%%%'%[%"%.]]=],
check_ts = false,
enable_moveright = true,
enable_afterquote = true,

View File

@ -6,7 +6,7 @@ local M = {}
local default_config = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
highlight = 'Search',