refactor: fix luals warnings

This commit is contained in:
dundargoc
2023-12-13 14:04:24 +01:00
committed by dundargoc
parent bf0be0f63e
commit d51b615747
17 changed files with 133 additions and 77 deletions

View File

@@ -46,7 +46,7 @@ function M.hover()
end
local function request_with_options(name, params, options)
local req_handler
local req_handler --- @type function?
if options then
req_handler = function(err, result, ctx, config)
local client = assert(vim.lsp.get_client_by_id(ctx.client_id))