From c87f69c856505ea778f6fd883a90397e55c8e59d Mon Sep 17 00:00:00 2001 From: Khang Date: Wed, 8 Mar 2023 15:12:08 +0800 Subject: [PATCH] fix: parameter types for searchpair and searchpairpos (#130) --- types/override/vim.fn.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/types/override/vim.fn.lua b/types/override/vim.fn.lua index 1f52bbd7..bd6b797c 100644 --- a/types/override/vim.fn.lua +++ b/types/override/vim.fn.lua @@ -37,4 +37,26 @@ return { { type = "string" }, }, }, + ["vim.fn.searchpair"] = { + params = { + { name = "start", type = "string" }, + { name = "middle", type = "string", optional = true }, + { name = "end", type = "string" }, + { name = "flags", type = "string", optional = true }, + { name = "skip", type = "string", optional = true }, + { name = "stopline", type = "number", optional = true }, + { name = "timeout", type = "number", optional = true }, + }, + }, + ["vim.fn.searchpairpos"] = { + params = { + { name = "start", type = "string" }, + { name = "middle", type = "string", optional = true }, + { name = "end", type = "string" }, + { name = "flags", type = "string", optional = true }, + { name = "skip", type = "string", optional = true }, + { name = "stopline", type = "number", optional = true }, + { name = "timeout", type = "number", optional = true }, + }, + }, }