Skip to content

Commit

Permalink
fix: expr = true for MouseMove, vim.schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
soulis-1256 committed May 23, 2024
1 parent dd535a2 commit 509ccce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/eagle/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,11 @@ append_keymap("n", "<MouseMove>", function(preceding)
print("eagle.nvim: MouseMove detected at " .. os.clock())
end

M.manage_windows()
isMouseMoving = true
end, { silent = true })
vim.schedule(function()
M.manage_windows()
isMouseMoving = true
end)
end, { silent = true, expr = true })

-- in the future, I may need to bind this to CmdlineEnter and/or CmdWinEnter, instead of setting a keymap
append_keymap({ "n", "v" }, ":", function(preceding)
Expand Down

0 comments on commit 509ccce

Please sign in to comment.