From 2bf52f747b8633d38b671d0e9b968ec0a3133bcb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 14 Nov 2025 00:43:43 -0500 Subject: fix: luals warnings --- lsp/ts_ls.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lsp/ts_ls.lua') diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index a47039e6..8b77c6a5 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -93,7 +93,7 @@ return { local client = assert(vim.lsp.get_client_by_id(ctx.client_id)) local file_uri, position, references = unpack(command.arguments) - local quickfix_items = vim.lsp.util.locations_to_items(references, client.offset_encoding) + local quickfix_items = vim.lsp.util.locations_to_items(references --[[@as any]], client.offset_encoding) vim.fn.setqflist({}, ' ', { title = command.title, items = quickfix_items, @@ -104,12 +104,13 @@ return { }) vim.lsp.util.show_document({ - uri = file_uri, + uri = file_uri --[[@as string]], range = { - start = position, - ['end'] = position, + start = position --[[@as lsp.Position]], + ['end'] = position --[[@as lsp.Position]], }, }, client.offset_encoding) + ---@diagnostic enable: assign-type-mismatch vim.cmd('botright copen') end, @@ -125,6 +126,7 @@ return { vim.lsp.buf.code_action({ context = { only = source_actions, + diagnostics = {}, }, }) end, {}) -- cgit v1.2.3-70-g09d2