aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/ruby.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-09-15 14:14:21 +0100
committerGitHub <noreply@github.com>2026-09-15 14:14:21 +0100
commitc171a697cbee36c4f36535e14f1407909733ca4b (patch)
tree945a337b27aa3f15b26250d40b5535a5ead33181 /runtime/lua/vim/provider/ruby.lua
parent3f21132a65a9c1f9ae5307bb59a5c730240c4a34 (diff)
downloadrneovim-c171a697cbee36c4f36535e14f1407909733ca4b.tar.gz
rneovim-c171a697cbee36c4f36535e14f1407909733ca4b.tar.bz2
rneovim-c171a697cbee36c4f36535e14f1407909733ca4b.zip
fix(lua): add missing param annotations (#41911)
Diffstat (limited to 'runtime/lua/vim/provider/ruby.lua')
-rw-r--r--runtime/lua/vim/provider/ruby.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/provider/ruby.lua b/runtime/lua/vim/provider/ruby.lua
index 52dd718968..57e7393776 100644
--- a/runtime/lua/vim/provider/ruby.lua
+++ b/runtime/lua/vim/provider/ruby.lua
@@ -2,6 +2,8 @@ local M = {}
local s_err ---@type string?
local s_host ---@type string?
+--- @param host { name: string, orig_name: string }
+--- @return integer
function M.require(host)
local prog = M.detect()
local args = { prog }
@@ -15,6 +17,8 @@ function M.require(host)
return vim.fn['provider#Poll'](args, host.orig_name, '$NVIM_RUBY_LOG_FILE')
end
+---@param method string
+---@param args any[]
function M.call(method, args)
if s_err then
return
@@ -53,6 +57,7 @@ function M.detect()
return prog, err
end
+--- @param plugin_path string
function M.start(plugin_path)
vim.fn['remote#host#RegisterClone']('legacy-ruby-provider', 'ruby')
vim.fn['remote#host#RegisterPlugin']('legacy-ruby-provider', plugin_path, {})