noice.nvim icon indicating copy to clipboard operation
noice.nvim copied to clipboard

allow progress notification without real lsp

Open rtgiskard opened this issue 6 months ago • 1 comments

This is a try to support #682

example:

local noice_progress = require('noice.lsp.progress')

--  provide a fake lsp client name
local client_name = 'stylua'

-- begin the progress notification with no percentage
local msg_id = noice_progress.progress_msg(client_name, {title = 'check ..'})

-- update the progress message
noice_progress.progress_msg(client_name, {title = 'format ..', percentage = 40, id = msg_id})

-- once operation is done, use the `msg_id` to finish the progress
noice_progress.progress_msg_end(msg_id)

rtgiskard avatar Dec 30 '23 17:12 rtgiskard

@folke Hello, This PR has been there for quite some time, just wanted to kindly remind you of its existence.

This is an effort to implement the feature in #682, which allow progress message for external tools without a lsp server. As I think this could be helpful, would you like to spare some time to have a review, I would really appreciate any feedback you might have.

rtgiskard avatar Apr 02 '24 10:04 rtgiskard