diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-28 14:19:42 +0100 |
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2026-09-28 14:43:14 +0100 |
| commit | c6535538f8717a8f6134020a5bee65341cf8280f (patch) | |
| tree | a3c7512c9b98a571744d49ca6ff7f8c6568d373e /runtime/lua/vim/provider/ruby.lua | |
| parent | b597af006fbb7c94c03ea9e7fa13cab7394b0501 (diff) | |
| download | rneovim-c6535538f8717a8f6134020a5bee65341cf8280f.tar.gz rneovim-c6535538f8717a8f6134020a5bee65341cf8280f.tar.bz2 rneovim-c6535538f8717a8f6134020a5bee65341cf8280f.zip | |
fix(lua): enable param-type-mismatch diagnostic
Problem: Argument type mismatches are excluded from EmmyLua checks.
Solution: Correct runtime annotations and calls, document local checker
workarounds, and enable the diagnostic.
AI-assisted
Diffstat (limited to 'runtime/lua/vim/provider/ruby.lua')
| -rw-r--r-- | runtime/lua/vim/provider/ruby.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/provider/ruby.lua b/runtime/lua/vim/provider/ruby.lua index 57e7393776..b48b680408 100644 --- a/runtime/lua/vim/provider/ruby.lua +++ b/runtime/lua/vim/provider/ruby.lua @@ -1,6 +1,6 @@ local M = {} local s_err ---@type string? -local s_host ---@type string? +local s_host ---@type integer? --- @param host { name: string, orig_name: string } --- @return integer @@ -31,6 +31,7 @@ function M.call(method, args) vim.api.nvim_echo({ { result, 'WarningMsg' } }, true) return end + --- @cast result integer s_host = result end |