From b538027b6d1cada26195ac82c03529154604b4d2 Mon Sep 17 00:00:00 2001 From: "Adam P. Regasz-Rethy" Date: Mon, 2 Oct 2023 15:54:30 -0400 Subject: [PATCH] Mark as completed earlier --- lua/illuminate/providers/lsp.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/illuminate/providers/lsp.lua b/lua/illuminate/providers/lsp.lua index 87f2492..f3f5f5d 100644 --- a/lua/illuminate/providers/lsp.lua +++ b/lua/illuminate/providers/lsp.lua @@ -43,7 +43,6 @@ function M.get_references(bufnr) return nil end - bufs[bufnr][4] = true return bufs[bufnr][3] end @@ -63,8 +62,8 @@ end function M.initiate_request(bufnr, winid) local id = 1 if bufs[bufnr] then - local prev_id, cancel_fn, _, completed = unpack(bufs[bufnr]) - if not completed then + local prev_id, cancel_fn, references = unpack(bufs[bufnr]) + if references == nil then pcall(cancel_fn) end id = prev_id + 1