aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/net.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-09-07 17:04:29 +0100
committerLewis Russell <me@lewisr.dev>2026-09-08 16:50:53 +0100
commit6a54396db46c97529ce89ffceb78a2842a7573c5 (patch)
tree64cc604501c432b6e073f204c746ecbc051c138a /runtime/lua/vim/net.lua
parentec65796cead84071603cd4814eacfa7af3faf764 (diff)
downloadrneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.tar.gz
rneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.tar.bz2
rneovim-6a54396db46c97529ce89ffceb78a2842a7573c5.zip
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
Diffstat (limited to 'runtime/lua/vim/net.lua')
-rw-r--r--runtime/lua/vim/net.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/net.lua b/runtime/lua/vim/net.lua
index ff3a1558f1..96e67c1eef 100644
--- a/runtime/lua/vim/net.lua
+++ b/runtime/lua/vim/net.lua
@@ -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