Skip to content

Commit

Permalink
fix: parameter types for searchpair and searchpairpos (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvukhang committed Mar 8, 2023
1 parent ff858a9 commit c87f69c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions types/override/vim.fn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}

0 comments on commit c87f69c

Please sign in to comment.