Skip to content

Commit 75c0d02

Browse files
committed
Revert "rpc: use class methods on nvim-0.11 (fix #211)"
This reverts commit 90d2d58.
1 parent 90d2d58 commit 75c0d02

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lua/null-ls/rpc.lua

+2-7
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,9 @@ M.start = function(dispatchers)
132132
return handle(method, params, nil, true)
133133
end
134134

135-
local use_class_method = vim.fn.has("nvim-0.11") == 1
136135
return {
137-
request = use_class_method and function(_, ...)
138-
request(...)
139-
end or request,
140-
notify = use_class_method and function(_, ...)
141-
notify(...)
142-
end or notify,
136+
request = request,
137+
notify = notify,
143138
is_closing = function()
144139
return stopped
145140
end,

0 commit comments

Comments
 (0)