@@ -8,6 +8,8 @@ local getLabel = require 'core.hover.label'
8
8
local jsonb = require ' json-beautify'
9
9
local util = require ' utility'
10
10
local markdown = require ' provider.markdown'
11
+ local fs = require ' bee.filesystem'
12
+ local furi = require ' file-uri'
11
13
12
14
--- @alias doctype
13
15
--- | ' doc.alias'
@@ -214,10 +216,6 @@ export.makeDocObject['local'] = function(source, obj, has_seen)
214
216
obj .name = source [1 ]
215
217
end
216
218
217
- export .makeDocObject [' luals.config' ] = function (source , obj , has_seen )
218
-
219
- end
220
-
221
219
export .makeDocObject [' self' ] = export .makeDocObject [' local' ]
222
220
223
221
export .makeDocObject [' setfield' ] = export .makeDocObject [' doc.class' ]
@@ -284,17 +282,25 @@ end
284
282
--- @param callback fun ( i , max )
285
283
function export .makeDocs (globals , callback )
286
284
local docs = {}
287
-
288
285
for i , global in ipairs (globals ) do
289
286
table.insert (docs , export .documentObject (global ))
290
287
callback (i , # globals )
291
288
end
292
-
289
+ docs [ # docs + 1 ] = export . getLualsConfig ()
293
290
table.sort (docs , export .sortDoc )
294
-
295
291
return docs
296
292
end
297
293
294
+ function export .getLualsConfig ()
295
+ return {
296
+ name = ' LuaLS' ,
297
+ type = ' luals.config' ,
298
+ DOC = fs .absolute (fs .path (DOC )):string (),
299
+ defines = {},
300
+ fields = {}
301
+ }
302
+ end
303
+
298
304
--- takes the table from `makeDocs`, serializes it, and exports it
299
305
--- @async
300
306
--- @param docs table
0 commit comments