Skip to content

Commit

Permalink
Revert "rpc: use class methods on nvim-0.11 (fix #211)"
Browse files Browse the repository at this point in the history
This reverts commit e136069.
  • Loading branch information
mochaaP committed Nov 30, 2024
1 parent a2ff908 commit a6460a6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lua/null-ls/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,9 @@ M.start = function(dispatchers)
return handle(method, params, nil, true)
end

local use_class_method = vim.fn.has("nvim-0.11") == 1
return {
request = use_class_method and request or function(_, ...)
request(...)
end,
notify = use_class_method and notify or function(_, ...)
notify(...)
end,
request = request,
notify = notify,
is_closing = function()
return stopped
end,
Expand Down

0 comments on commit a6460a6

Please sign in to comment.