Skip to content

Commit f64e43b

Browse files
committed
3 more nvim 0.11 lsp.Client changes.
1 parent dac595d commit f64e43b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/lean/rpc.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local lsp = require 'lean.lsp'
2121
---@return any result
2222
local function client_a_request(client, request, params)
2323
return a.wrap(function(handler)
24-
return client.request(request, params, handler)
24+
return client:request(request, params, handler)
2525
end, 1)()
2626
end
2727

@@ -73,7 +73,7 @@ function Session:new(client, buffer, uri)
7373
KEEPALIVE_PERIOD_MS,
7474
vim.schedule_wrap(function()
7575
if not self:is_closed() and self.session_id ~= nil then
76-
self.client.notify('$/lean/rpc/keepAlive', {
76+
self.client:notify('$/lean/rpc/keepAlive', {
7777
uri = self.uri,
7878
sessionId = self.session_id,
7979
})
@@ -93,7 +93,7 @@ function Session:new(client, buffer, uri)
9393
end
9494

9595
function Session:is_closed()
96-
if self.client and self.client.is_stopped() then
96+
if self.client and self.client:is_stopped() then
9797
self:close_without_releasing()
9898
end
9999
return self.client == nil

0 commit comments

Comments
 (0)