altermo / ultimate-autopair.nvim

A treesitter supported autopairing plugin with extensions, and much more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Strange behavior of <cr>

Mythos-404 opened this issue · comments

cr

Most cases:

{|} -> <cr>
{

|} 

Can you provide minimal config?

Testing revealed a relationship with vim.o.whichwrap

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"git@github.com:folke/lazy.nvim.git",
		"--branch=stable", -- latest stable release
		lazypath,
	})
end
vim.opt.rtp:prepend(lazypath)

vim.o.whichwrap = "h,l,<,>,[,],~" -- !!!!!

require("lazy").setup({
	{ "altermo/ultimate-autopair.nvim", opts = {}, url = "git@github.com:altermo/ultimate-autopair.nvim.git" },
})

cr

Fixed; I forgot to go to the start of the line after the line change.