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