Add support for empty jsdoc comment

This commit is contained in:
Daniel Mathiot
2021-08-24 12:09:43 +02:00
parent 98329fcf77
commit 3a40a1d111
3 changed files with 16 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ neogen.auto_generate = function(custom_template)
-- Use the language granulator to get the required content inside the node found with the locator
local data = language.granulator(located_parent_node, language.data)
if data and not vim.tbl_isempty(data) then
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,