smjonas / duplicate.nvim

Neovim plugin to duplicate a textobject.
22 stars 0 forks source link

Don't map `yd` for visual mode by default #1

Closed chrisgrieser closed 1 year ago

chrisgrieser commented 1 year ago

the plugins seems to map yd for visual mode by default. While a visual mode duplication command is indeed useful, I think it should be at least a separate keymap, or something other than yd.

The reason is that mapping yd to visual mode means that yanking in visual mode with y now has a small delay (opt.timeout), since vim is waiting to see whether the d is pressed, making yanks in visual mode quite annoying.

smjonas commented 1 year ago

Good point, I added textobject_visual_mode that's set to nil by default