Skip to content

Commit 233246f

Browse files
committed
feat: add type annotations for plenary.run
1 parent f37156b commit 233246f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lua/plenary/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
---@field operators PlenaryOperators
1616
---@field path PlenaryPath
1717
---@field reload PlenaryReload
18+
---@field run PlenaryRun
1819
---@field scandir PlenaryScandir
1920
---@field strings PlenaryStrings
2021
---@field tbl PlenaryTbl

lua/plenary/run.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
local floatwin = require "plenary.window.float"
22

3+
---@class PlenaryRun
34
local run = {}
45

6+
---@param title_text string[]
7+
---@param cmd string|string[]
8+
---@param opts? any
9+
---@return integer bufnr
10+
---@return integer win_id
511
run.with_displayed_output = function(title_text, cmd, opts)
612
local views = floatwin.centered_with_top_win(title_text)
713

0 commit comments

Comments
 (0)