Skip to content

Commit 5d0bfaa

Browse files
authored
fix: correct vim.lsp.client_is_stopped deprecation (#158)
1 parent f61cb7a commit 5d0bfaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lsp-progress/api.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ end
1616
--- @return boolean
1717
M.lsp_client_is_stopped = function(client_id)
1818
if NVIM_VERSION_012 then
19-
return vim.lsp.client_is_stopped(client_id)
20-
else
2119
return vim.lsp.get_client_by_id(client_id) == nil
20+
else
21+
return vim.lsp.client_is_stopped(client_id)
2222
end
2323
end
2424

0 commit comments

Comments
 (0)