mirror of
https://github.com/jiangmiao/auto-pairs.git
synced 2025-10-04 20:27:03 +08:00
support `
This commit is contained in:
@ -20,7 +20,7 @@ if !exists('g:AutoPairsShortcuts')
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !exists('g:AutoPairs')
|
if !exists('g:AutoPairs')
|
||||||
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"'}
|
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`'}
|
||||||
end
|
end
|
||||||
|
|
||||||
if !exists('g:AutoPairsParens')
|
if !exists('g:AutoPairsParens')
|
||||||
@ -84,7 +84,7 @@ function! AutoPairsInsert(key)
|
|||||||
return "\<Right>\<Right>"
|
return "\<Right>\<Right>"
|
||||||
end
|
end
|
||||||
|
|
||||||
" Skip the character if next
|
" Skip the character if closed pair is next character
|
||||||
if current_char == ''
|
if current_char == ''
|
||||||
let next_lineno = line('.')+1
|
let next_lineno = line('.')+1
|
||||||
let next_line = getline(nextnonblank(next_lineno))
|
let next_line = getline(nextnonblank(next_lineno))
|
||||||
|
Reference in New Issue
Block a user