-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution about auto-pair has some side-effects #47
Comments
Please show me the result of |
Can you make a gif? I can't reproduce the bug. |
@tenfyzhong I only pressed my plugins list:
|
I think you should disable other plugins and try it again. |
@tenfyzhong sorry for delay, it's a little busy some time ago. |
Can you give my you vimrc? |
@tenfyzhong I tried disable all other plugins except CompleteParameter and these configs: call plug#begin('~/.vim/plugged')
Plug 'tenfyzhong/CompleteParameter.vim'
call plug#end()
inoremap <silent><expr> ( complete_parameter#pre_complete("()")
smap <c-j> <Plug>(complete_parameter#goto_next_parameter)
imap <c-j> <Plug>(complete_parameter#goto_next_parameter)
smap <c-k> <Plug>(complete_parameter#goto_previous_parameter)
imap <c-k> <Plug>(complete_parameter#goto_previous_parameter) And the problem still exists! So I think maybe it's related to my terminal or input method? Because when I input |
Can you give me you vimrc? |
@tenfyzhong I deleted all other configs except the above ones, so that's my |
Update: It's not my input method or terminal issue. The automatically output inoremap <silent><expr> ( complete_parameter#pre_complete("()") when I input |
CompleteParameter can't complete brackets. You should install auto-pairs and add this configuration. let g:AutoPairs = {'[':']', '{':'}',"'":"'",'"':'"', '`':'`'}
inoremap <buffer><silent> ) <C-R>=AutoPairsInsert(')')<CR> |
@tenfyzhong Sorry, I deleted too much. When I added these (At the very beginning I already added), the problem still exists. My call plug#begin('~/.vim/plugged')
Plug 'tenfyzhong/CompleteParameter.vim'
Plug 'jiangmiao/auto-pairs'
call plug#end()
let g:AutoPairs = {'[':']', '{':'}',"'":"'",'"':'"', '`':'`'}
inoremap <buffer><silent> ) <C-R>=AutoPairsInsert(')')<CR>
inoremap <silent><expr> ( complete_parameter#pre_complete("()")
smap <c-j> <Plug>(complete_parameter#goto_next_parameter)
imap <c-j> <Plug>(complete_parameter#goto_next_parameter)
smap <c-k> <Plug>(complete_parameter#goto_previous_parameter)
imap <c-k> <Plug>(complete_parameter#goto_previous_parameter) I think it's related to |
Try to remove inoremap <silent> ) <C-R>=AutoPairsInsert(')')<CR> |
@tenfyzhong no change |
@dc3671 Please give me the version of you ycm and auto-pairs |
@tenfyzhong |
Issue Prelude
Completion Engine and Commit SHA
YouCompleteMe: master
Minimal Configuration
configs in FAQs about auto-pairs
Issue Details
after I input
(
without anything in front, and then input)
, there would be a redundant)
like belowMessages
The text was updated successfully, but these errors were encountered: