Open phanen opened 7 months ago
The feature to solve this, which is falling back to keymapping, is on the TODO list. But until I get to that part of the TODO list, you can use this config:
require'ultimate-autopair'.init({
require'ultimate-autopair'.extend_default({
--Your config
}),
{profile='map',p=-1,
{'i',' ',function () return vim.api.nvim_replace_termcodes(' <C-g>u',true,true,true) end},
{'i','-',function () return vim.api.nvim_replace_termcodes('-<C-g>u',true,true,true) end},
},
})
This workaround seems also adding cmap.
Fixed
After mappings, insert
<space>
or-
cannot insert a undo point as expected.