Skip to content

Commit

Permalink
removed recursive mapping (#396)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam-programs <None>
  • Loading branch information
Sam-programs committed Sep 23, 2023
1 parent 7b3eb9b commit de4f713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/nvim-autopairs.lua
Expand Up @@ -570,7 +570,7 @@ M.autopairs_cr = function(bufnr)
return utils.esc(
'<CR>' .. end_pair
-- FIXME do i need to re indent twice #118
.. '<CMD>normal ====k$<CR><right><CR>'
.. '<CMD>normal! ====<CR><up><end><CR>'
)
end

Expand Down
2 changes: 1 addition & 1 deletion lua/nvim-autopairs/rule.lua
Expand Up @@ -114,7 +114,7 @@ function Rule:get_map_cr(opts)
if self.map_cr_func then
return self.map_cr_func(opts)
end
return '<c-g>u<CR><CMD>normal ==k$<CR><right><CR>'
return '<c-g>u<CR><CMD>normal! ====<CR><up><end><CR>'
end
function Rule:replace_map_cr(value)
self.map_cr_func = value
Expand Down

0 comments on commit de4f713

Please sign in to comment.