Option to allow notifications to be displayed with fidget
al1-ce opened this issue · comments
Alisa Lain commented
https://github.com/j-hui/fidget.nvim
In my case most of notifications are handled by Noice, but it'd be nice to keep all LSP stuff to fidget and I'd love to see config option to make it so
Also maybe an option to handle it with Notify..?
Example from fidget API:
local progress = require("fidget.progress")
local handle = progress.handle.create({
title = "My Task",
message = "Doing something...",
lsp_client = { name = "my_fake_lsp" },
percentage = 0,
})
-- You can update properties directly and the
-- progress message will be updated accordingly
handle.message = "Doing something else..."
-- Or you can use the `report` method to bulk-update
-- properties.
handle:report({
title = "The task status changed"
message = "Doing another thing...",
percentage = 50,
})
-- You can also cancel the task (errors if not cancellable)
handle:cancel()
-- Or mark it as complete (updates percentage to 100 automatically)
handle:finish()
Alisa Lain commented
I think I'll try making a PR for that, should be easy