-
Notifications
You must be signed in to change notification settings - Fork 61
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
Progress from the LSP like lua-ls stays even it's 100%. #229
Comments
Sounds related to #201. Have you tried setting the |
Hey i've got the same problem, I've tried the #201 fix, even with 10000 and it still stays (in my case it's rust-analyzer) |
I try using vim.api.nvim_create_autocmd("LspProgress", {
pattern = "end",
callback = function(ev)
local token = ev.data.result.token
local client_id = ev.data.client_id
local client = client_id and vim.lsp.get_client_by_id(client_id)
if client and token then
require("fidget").notification.remove(client.name, token)
end
end,
}) |
@cairijun thanks for this! I had to modify it slightly -- the token was in vim.api.nvim_create_autocmd("LspProgress", {
pattern = "end",
callback = function(ev)
local token = ev.data.params.token
local client_id = ev.data.client_id
local client = client_id and vim.lsp.get_client_by_id(client_id)
if client and token then
require("fidget").notification.remove(client.name, token)
end
end,
})
|
Setup: NvChad v2.5
Logs:
The text was updated successfully, but these errors were encountered: