diff --git a/autoload/vimtex/imaps.vim b/autoload/vimtex/imaps.vim index 055f64d..ee1e9ca 100644 --- a/autoload/vimtex/imaps.vim +++ b/autoload/vimtex/imaps.vim @@ -49,7 +49,7 @@ function! vimtex#imaps#add_map(map) " {{{1 " Apply wrapper if l:wrapper !=# '' && exists('*' . l:wrapper) - let l:rhs = call(l:wrapper, [l:lhs, l:rhs]) + let l:rhs = call(l:wrapper, [l:leader . l:lhs, l:rhs]) endif " Add mapping @@ -63,7 +63,7 @@ endfunction " function! s:wrap_math(lhs, rhs) " {{{1 return '=is_math() ? ' . string(a:rhs) - \ . ' : ' . string(a:lhs) . '' + \ . ' : ' . string(a:lhs) . '' endfunction " }}}1