Skip to content

Commit

Permalink
fix(utils): don't dotrepeat insert mode actions (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Oct 13, 2023
1 parent 7d507d4 commit 969b3f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/neorg/core/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ end

function utils.wrap_dotrepeat(event_handler)
return function(event)
if vim.api.nvim_get_mode().mode == "i" then
event_handler(event)
return
end

utils._neorg_is_dotrepeat = false
utils.set_operatorfunc(function()
if utils._neorg_is_dotrepeat then
Expand Down

0 comments on commit 969b3f1

Please sign in to comment.