Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug: nvim_echo must not be called in a lua loop callback #8

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

QuentinGruber
Copy link
Owner

@QuentinGruber QuentinGruber commented Sep 27, 2024

Fixes #6

Fix the 'nvim_echo must not be called in a lua loop callback' error when a break ends.

  • lua/pomodoro/log.lua
    • Use vim.schedule to call vim.notify in the info function.
    • Use vim.schedule to call vim.notify in the error function.

For more details, open the Copilot Workspace session.

Fixes #6

Fix the 'nvim_echo must not be called in a lua loop callback' error when a break ends.

* **lua/pomodoro/log.lua**
  - Use `vim.schedule` to call `vim.notify` in the `info` function.
  - Use `vim.schedule` to call `vim.notify` in the `error` function.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/QuentinGruber/pomodoro.nvim/issues/6?shareId=XXXX-XXXX-XXXX-XXXX).
@QuentinGruber QuentinGruber merged commit 21c3b6c into master Sep 27, 2024
4 checks passed
@QuentinGruber QuentinGruber deleted the fix-nvim-echo-bug branch November 23, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: nvim_echo must not be called in a lua loop callback
1 participant