Open BobbyGerace opened 2 years ago
This fix is working for me. But reading the code, I'm surprised that the timer is never stopped.
That is a good point... I'd expect the timer to stop when the lsp has finished loading. I'd be happy to include that in this PR too if @arkav is okay with it.
Should probably be a separate PR.
is this solved on master? I only want to use the spinner but it's super janky.
mutate_section_c {
"lsp_progress",
display_components = { "spinner" },
separators = {
component = " ",
progress = " | ",
spinner = { pre = " ", post = " " },
},
timer = { spinner = 500 },
spinner_symbols = {
"[ ]",
"[= ]",
"[== ]",
"[=== ]",
"[====]",
"[ ===]",
"[ ==]",
"[ =]",
"[ ]",
"[ =]",
"[ ==]",
"[ ===]",
"[====]",
"[=== ]",
"[== ]",
"[= ]",
},
}
@effinsky please try https://github.com/WhoIsSethDaniel/lualine-lsp-progress.nvim instead of this. This repo is no longer maintained.
https://github.com/arkav/lualine-lsp-progress/issues/15
I ran into this same issue... looks like the timer wasn't implemented correctly and so the spinner was relying on status updates.
Wrapping the function in a
vim.schedule_wrap
appears to fix the problem