commit a0d94ac4692a046e88850d512112754c4b8d7013
parent 1969f685af98c998c7eaa414982540d80d17d564
Author: Gregory Anders <greg@gpanders.com>
Date: Fri, 8 Aug 2025 09:59:14 -0500
docs(lsp): add reference to progress indicator protocol (#35215)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
@@ -672,10 +672,8 @@ LspProgress *LspProgress*
Redraw the statusline whenever an LSP progress message arrives: >vim
autocmd LspProgress * redrawstatus
<
-
Tell the parent terminal to indicate progress using a native progress
indicator (requires a supporting terminal): >lua
-
vim.api.nvim_create_autocmd('LspProgress', {
callback = function(ev)
local value = ev.data.params.value
@@ -684,11 +682,13 @@ LspProgress *LspProgress*
elseif value.kind == 'end' then
io.stdout:write('\027]9;4;0\027\\')
elseif value.kind == 'report' then
- io.stdout:write(string.format('\027]9;4;1;%d\027\\', value.percentage))
+ io.stdout:write(string.format('\027]9;4;1;%d\027\\', value.percentage or 0))
end
end,
})
<
+ See also: ~
+ • https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/progress-bar-sequences.md
LspRequest *LspRequest*
For each request sent to an LSP server, this event is triggered for