Skip to content

Commit 56e6e1b

Browse files
committed
fixup! client: use class methods on nvim-0.11 (fix #209)
1 parent 4c523be commit 56e6e1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lua/null-ls/client.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ local loop = require("null-ls.loop")
99
local api = vim.api
1010
local lsp = vim.lsp
1111

12+
---@type vim.lsp.Client?, integer?
1213
local client, id
1314

1415
---@param bufnr number
@@ -198,7 +199,11 @@ M.notify_client = function(method, params)
198199
return
199200
end
200201

201-
client.notify(method, params)
202+
if vim.fn.has("nvim-0.11") == 1 then
203+
client:notify(method, params)
204+
else
205+
client.notify(method, params)
206+
end
202207
end
203208

204209
M.resolve_handler = function(method)

0 commit comments

Comments
 (0)