File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11
11
--- @field job PlenaryJob
12
12
--- @field json PlenaryJson
13
13
--- @field log PlenaryLog
14
+ --- @field nvim_meta PlenaryNvimMeta
14
15
--- @field path PlenaryPath
15
16
--- @field scandir PlenaryScandir
16
17
--- @field strings PlenaryStrings
Original file line number Diff line number Diff line change
1
+ --- @class PlenaryNvimMetaLuaVersion
2
+ --- @field jit string
3
+ --- @field lua string
4
+ --- @field version string
5
+
6
+ --- @return PlenaryNvimMetaLuaVersion
1
7
local get_lua_version = function ()
2
8
if jit then
3
9
return {
@@ -10,9 +16,13 @@ local get_lua_version = function()
10
16
error (" NEOROCKS: Unsupported Lua Versions" , _VERSION )
11
17
end
12
18
19
+ --- @class PlenaryNvimMeta
20
+ --- @field is_headless boolean
21
+ --- @field lua_jit PlenaryNvimMetaLuaVersion
22
+
13
23
return {
14
24
-- Is run in `--headless` mode.
15
25
is_headless = (# vim .api .nvim_list_uis () == 0 ),
16
26
17
27
lua_jit = get_lua_version (),
18
- }
28
+ } --[[ @as PlenaryNvimMeta ]]
You can’t perform that action at this time.
0 commit comments