cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
995 stars 46 forks source link

feat: <CR> completions with pum.vim #134

Closed ryota2357 closed 2 years ago

ryota2357 commented 2 years ago

I added g:lexima_accept_pumvim_with_enter.

This is like g:lexima_accept_pum_with_enter.
When using pum.vim as a popup completion menu, g:lexima_accept_pum_with_enter does not work.

cohama commented 2 years ago

Thank you for your contribution. But I can not accept this pull request because I do not want to add a feature that depends on any other plugins.

To avoid this problem, users can manually remap <CR> as follows.

inoremap <expr> <CR> pum#visible() ? '<Cmd>call pum#map#confirm()<CR> : lexima#expand('<CR>', 'i')
ryota2357 commented 2 years ago

Thank you for your reply.

I understood.