ggandor / lightspeed.nvim

deprecated in favor of leap.nvim
MIT License
1.56k stars 28 forks source link

lightspeed with vim-multiple-cursors #167

Open Leandros opened 2 years ago

Leandros commented 2 years ago

Using lightspeed.nvim while in multiple cursors mode results in hanging up neovim. The only way to get out of that is Ctrl-C or kill -9.

The easiest way to fix this would be to provide an override option to disable lightspeed.nvim (and restore default mappings) by toggling a variable.

That's what other plugins are doing. For example, from my .vimrc:

function! Multiple_cursors_before()
    let g:yankring_record_enabled = 0
    if exists("AutoPairsToggle")
      call AutoPairsToggle()
    endif
endfunction
function! Multiple_cursors_after()
    let g:yankring_record_enabled = 1
    if exists("AutoPairsToggle")
      call AutoPairsToggle()
    endif
endfunction