From c405ef9823ec7fa32ea1e9217b12f66bbe71e595 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 23 May 2024 09:55:28 +0200 Subject: use ls:call_method call convention consistently --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 7073136..431307f 100644 --- a/init.lua +++ b/init.lua @@ -745,7 +745,7 @@ end -- resulting in longer stalls after method invocation. local function ls_call_text_document_method(ls, method, params, win, ctx) ls_send_did_change(ls, win.file) - ls_call_method(ls, 'textDocument/' .. method, params, win, ctx) + ls:call_method('textDocument/' .. method, params, win, ctx) end local function lspc_handle_goto_method_response(req, result) @@ -1255,7 +1255,7 @@ end -- Sending the exit notification and closing the file handle are done in -- the shutdown response handler. local function ls_shutdown(ls) - ls_call_method(ls, 'shutdown') + ls:call_method('shutdown') end local function ls_start(ls, init_options) -- cgit v1.2.3