Skip to content

Commit

Permalink
fix undo blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-programs authored and Sam-programs committed Oct 17, 2023
1 parent ac2fc3a commit f9d3644
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/nvim-autopairs/completion/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ M.cpp_pairs = function()
pairs = ' '
end
pairs = pairs .. '<>'
pairs = pairs .. utils.esc('<left>')
vim.api.nvim_feedkeys(pairs, "n", false)
pairs = pairs .. utils.esc(utils.key.join_left)
OLD_lazyredraw = vim.o.lazyredraw
vim.o.lazyredraw = true
vim.api.nvim_feedkeys(pairs .. utils.esc("<cmd>lua vim.o.lazyredraw = OLD_lazyredraw<cr>"),"i", false)
end
end
end
Expand Down

0 comments on commit f9d3644

Please sign in to comment.