You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For (), they typically exist on the same line. Type ) in the context (*), the result is ()*, which is expected.
The same is true for {} on the same line.
However, {} pairs typically span multiple lines. In such cases, a similar behavior is not possible.
Namely, I cannot move to the right of } on the next line by pressing } in insert mode.
Mapping bug
No response
Steps to reproduce
If I have
int x() {
*
}
I want to close the function an write int y(), without leaving insert mode. But if I press }, I simply get:
int x() {
}*
}
I'd expect:
int x() {
}*
Minimal config
vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvim/site]]localpackage_root='/tmp/nvim/site/pack'localinstall_path=package_root..'/packer/start/packer.nvim'localfunctionload_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
{
'windwp/nvim-autopairs',
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
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()
endifvim.fn.isdirectory(install_path) ==0thenprint("Installing nvim-autopairs and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
endload_plugins()
require('packer').sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
The text was updated successfully, but these errors were encountered:
Description
For
()
, they typically exist on the same line. Type)
in the context(*)
, the result is()*
, which is expected.The same is true for
{}
on the same line.However,
{}
pairs typically span multiple lines. In such cases, a similar behavior is not possible.Namely, I cannot move to the right of
}
on the next line by pressing}
in insert mode.Mapping bug
No response
Steps to reproduce
If I have
I want to close the function an write
int y()
, without leaving insert mode. But if I press}
, I simply get:I'd expect:
Minimal config
The text was updated successfully, but these errors were encountered: