wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

Delay caused by keys (keymaps) #1195

Open kurkale6ka opened 1 year ago

kurkale6ka commented 1 year ago

Steps to reproduce

This happens for a plugin I use: use { 'tpope/vim-abolish', cmd = { 'Abolish', 'Subvert' }, keys = 'cr' }

Now even though cr should only be triggered in normal mode, it's also affecting visual mode as shown below:

:xmap cr
cr          * <Cmd>lua require("packer.load")({'vim-abolish'}, { keys = "cr", prefix = "" }, _G.packer_plugins)<CR>

This means that using c to change a visual selection is delayed.

Actual behaviour

using c to change a visual selection is delayed

Expected behaviour

No delay when changing visually selected text with c

packer files

Plugin specification file(s) Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer
packer log file Post the contents of ~/.cache/nvim/packer.nvim.log here
packer compiled file Post the contents of `packer_compiled.vim` here