(lua) add type annotation for variables

This commit is contained in:
Daniel Mathiot
2021-08-25 14:13:32 +02:00
parent 2449e499c1
commit a8954178da
4 changed files with 57 additions and 33 deletions

View File

@@ -44,7 +44,7 @@ neogen.generate = function(opts)
if data then
-- Will try to generate the documentation from a template and the data found from the granulator
local to_place, start_column, content = language.generator(located_parent_node, data, language.template)
local to_place, start_column, content = language.generator(located_parent_node, data, language.template, opts.type)
-- Append the annotation in required place
vim.fn.append(to_place, content)