bullets.vim icon indicating copy to clipboard operation
bullets.vim copied to clipboard

Bullets.vim breaks <CR> mappings from other plugins

Open nkakouros opened this issue 5 years ago • 2 comments

I have the following plugins enabled:

ncm2
ncm2-ultisnips
ncm2-markdown-subscope
ultisnips
bullets.vim

When a fenced code block editing a markdown file, eg python, ncm2 provides completions some of which are snippets. When I select a snippet in the popup menu and hit Enter, I normally expect the snippet to expand. However, with bullets.vim enabled, the expansion does not happen.

Other plugins like endwise and autopairs append their mapping to the user's <CR> mapping.

I also tried to disable the <CR> mapping of bullets.vim and call some function from the plugin to trigger list completion, but the functions are not available as they are script local.

nkakouros avatar Feb 01 '20 17:02 nkakouros

@nkakouros would you be interested in opening a PR to fix that?

dkarter avatar May 05 '20 16:05 dkarter

I have the same issue with bullet.vim and vim-clap. Pressing <cr> to select an item with vim-clap does nothing when bullet.vim is installed. Adding let g:bullets_set_mappings = 0, or removing bullets.vim solves the issue, which is why I'm suspecting the <cr> mapping.

To reproduce:

  1. .vimrc:

    call plug#begin('~/.config/nvim/plugged')
    Plug 'liuchengxu/vim-clap'
    Plug 'dkarter/bullets.vim'
    call plug#end()
    
  2. :Clap files

  3. Press <cr> on any match. Nothing happens.

mawkler avatar Feb 26 '21 14:02 mawkler