fix(fastwrap): remove offset on config

This commit is contained in:
zztrieuzz 2022-04-12 07:54:53 +07:00
parent fc2a145242
commit 8faf72bafe
2 changed files with 1 additions and 3 deletions

View File

@ -301,7 +301,6 @@ npairs.setup({
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
offset = -1, -- Offset from pattern match
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
check_comma = true,

View File

@ -7,7 +7,6 @@ local default_config = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
offset = -1, -- Offset from pattern match
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
highlight = 'Search',
@ -56,7 +55,7 @@ M.show = function(line)
local list_pos = {}
local index = 1
local str_length = #line
local offset = config.offset
local offset = -1
local is_end_key = true
for i = col + 2, #line, 1 do
local char = line:sub(i, i)