Description
The completion works fine in standard insert mode and after cutting one line with c. When using 2c or any other motion affecting many objects, like c2w, and then typing { or ( or similar, no pairs are added, no matter the filetype and opening element of the pair.
Looks like a regression in Nvim 0.12.*. The above definitely worked before in Nvim 0.11.
Mapping bug
No response
Steps to reproduce
Use a default config and no other plugins, open a file, add a couple of lines. Enter insert mode and type {, } will also appear. Run 2c, type {, the closing brace does not appear. Escape, enter insert mode again, type {, and } appears as needed.
Minimal config
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
{
'windwp/nvim-autopairs',
},
},
config = {
package_root = package_root,
compile_path = install_path .. '/plugin/packer_compiled.lua',
display = { non_interactive = true },
},
}
end
_G.load_config = function()
require('nvim-autopairs').setup()
end
if vim.fn.isdirectory(install_path) == 0 then
print("Installing nvim-autopairs and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
Description
The completion works fine in standard insert mode and after cutting one line with
c. When using2cor any other motion affecting many objects, likec2w, and then typing{or(or similar, no pairs are added, no matter the filetype and opening element of the pair.Looks like a regression in Nvim 0.12.*. The above definitely worked before in Nvim 0.11.
Mapping bug
No response
Steps to reproduce
Use a default config and no other plugins, open a file, add a couple of lines. Enter insert mode and type
{,}will also appear. Run2c, type{, the closing brace does not appear. Escape, enter insert mode again, type{, and}appears as needed.Minimal config