mirror of
https://github.com/neovim/neovim.git
synced 2026-09-12 09:01:02 +00:00
build: enable more EmmyLua checks
- call-non-callable - missing-fields - redefined-label - redefined-local - undefined-field - unreachable-code Promote redefined-local and unreachable-code to warnings. Fix DOS line-ending handling for multiline semantic tokens, and support intersection types in the help parser. AI-assisted
This commit is contained in:
committed by
Lewis Russell
parent
ec65796cea
commit
6a54396db4
@@ -107,6 +107,7 @@ function M.request(method, url, opts, on_response)
|
||||
return (b == nil and true) or (type(b) == 'string' and not b:match('^@'))
|
||||
end, true, 'body should be string and not start with @')
|
||||
vim.validate('on_response', on_response, 'function', true)
|
||||
---@cast on_response vim.net.request.ResponseFunc?
|
||||
|
||||
local retry = opts.retry or 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user