Skip to content

Commit

Permalink
fix(utils): don't dotrepeat insert mode actions
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Oct 11, 2023
1 parent 7d507d4 commit c3b1120
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 c3b1120

Please sign in to comment.