neovide.neovide/lua
Alexsander Falcucci ba8c41f423
Some checks failed
Lint Website / Lint website (push) Has been cancelled
Build and Publish Website / Build Website (push) Has been cancelled
Build and Publish Website / Generate Sitemap (push) Has been cancelled
Build and Publish Website / Publish Website (push) Has been cancelled
handle neovim bufwrite progress events (#3546)
after some debugging, stable and nightly currently encode buffer writes
differently meaning that stable has something like:

    {
      data = ...,
      id = "bufwrite",
      percent = 0,
      source = "nvim",
      status = "running",
      text = { '[file-path]' },
      title = ""
    }

against the current nightly

    {
      data = ...,
      id = 'nvim.bufwrite "[file-path]"',
      source = "nvim",
      status = "running",
      text = { '"[file-path]" ' },
      title = ""
    }

so missing percentages now finish the active progress item instead of starting
a 0% animation, while determinate progress continues to animate by id.

for example now we will show the progress bar only when a neovim producer
(a plugin or any process event that uses nvim_echo) sends a real determinate percent.

    vim.api.nvim_echo({ { "my-progress-bar." } }, true, {
      kind = "progress",
      id = "neovide-task",
      source = "plugin-name",
      percent = 25,
      status = "running",
    })
2026-08-12 01:03:06 +02:00
..
exit_handler.lua Enabled remapping of Command+Q on macOS (#3048) 2025-03-17 09:46:16 +01:00
init.lua handle neovim bufwrite progress events (#3546) 2026-08-12 01:03:06 +02:00