mirror of
https://github.com/neovide/neovide.git
synced 2026-09-10 07:16:25 -04:00
|
Some checks failed
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",
})
|
||
|---|---|---|
| .. | ||
| exit_handler.lua | ||
| init.lua | ||