mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-10-27 01:01:39 +03:00
docs: replace string.gsub with [=[...]=] string
This commit is contained in:
parent
aea913109d
commit
b9cc0a26f3
@ -15,7 +15,7 @@ require('nvim-autopairs').setup{}
|
|||||||
local disable_filetype = { "TelescopePrompt" }
|
local disable_filetype = { "TelescopePrompt" }
|
||||||
local disable_in_macro = false -- disable when recording or executing a macro
|
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 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_moveright = true
|
||||||
local enable_afterquote = true -- add bracket pairs after quote
|
local enable_afterquote = true -- add bracket pairs after quote
|
||||||
local enable_check_bracket_line = true --- check bracket in same line
|
local enable_check_bracket_line = true --- check bracket in same line
|
||||||
@ -301,7 +301,7 @@ npairs.setup({
|
|||||||
fast_wrap = {
|
fast_wrap = {
|
||||||
map = '<M-e>',
|
map = '<M-e>',
|
||||||
chars = { '{', '[', '(', '"', "'" },
|
chars = { '{', '[', '(', '"', "'" },
|
||||||
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
|
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
|
||||||
end_key = '$',
|
end_key = '$',
|
||||||
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
||||||
check_comma = true,
|
check_comma = true,
|
||||||
|
@ -25,7 +25,7 @@ DEFAULT VALUES *nvim-autopairs-default-values*
|
|||||||
local disable_filetype = { "TelescopePrompt" }
|
local disable_filetype = { "TelescopePrompt" }
|
||||||
local disable_in_macro = false -- disable when recording or executing a macro
|
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 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_moveright = true
|
||||||
local enable_afterquote = true -- add bracket pairs after quote
|
local enable_afterquote = true -- add bracket pairs after quote
|
||||||
local enable_check_bracket_line = true --- check bracket in same line
|
local enable_check_bracket_line = true --- check bracket in same line
|
||||||
@ -328,7 +328,7 @@ FASTWRAP ~
|
|||||||
fast_wrap = {
|
fast_wrap = {
|
||||||
map = '<M-e>',
|
map = '<M-e>',
|
||||||
chars = { '{', '[', '(', '"', "'" },
|
chars = { '{', '[', '(', '"', "'" },
|
||||||
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
|
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
|
||||||
end_key = '$',
|
end_key = '$',
|
||||||
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
||||||
check_comma = true,
|
check_comma = true,
|
||||||
|
@ -19,7 +19,7 @@ local default = {
|
|||||||
disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
|
disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
|
||||||
disable_in_macro = false,
|
disable_in_macro = false,
|
||||||
disable_in_visualblock = false,
|
disable_in_visualblock = false,
|
||||||
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]], '%s+', ''),
|
ignored_next_char = [=[[%w%%%'%[%"%.]]=],
|
||||||
check_ts = false,
|
check_ts = false,
|
||||||
enable_moveright = true,
|
enable_moveright = true,
|
||||||
enable_afterquote = true,
|
enable_afterquote = true,
|
||||||
|
@ -6,7 +6,7 @@ local M = {}
|
|||||||
local default_config = {
|
local default_config = {
|
||||||
map = '<M-e>',
|
map = '<M-e>',
|
||||||
chars = { '{', '[', '(', '"', "'" },
|
chars = { '{', '[', '(', '"', "'" },
|
||||||
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
|
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
|
||||||
end_key = '$',
|
end_key = '$',
|
||||||
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
keys = 'qwertyuiopzxcvbnmasdfghjkl',
|
||||||
highlight = 'Search',
|
highlight = 'Search',
|
||||||
|
Loading…
Reference in New Issue
Block a user