Skip to content

Commit 2e23bd4

Browse files
committed
Null check value in lsp_progress
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent 5167895 commit 2e23bd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/myplugins/lspecho.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ local function lsp_progress(err, progress, ctx)
8484
local client = vim.lsp.get_client_by_id(ctx.client_id)
8585
local client_name = client and client.name or ''
8686
local token = progress.token
87-
local value = progress.value
87+
local value = progress.value or progress
8888

8989
if value.kind == 'begin' then
9090
series[token] = {

0 commit comments

Comments
 (0)