From ded4838eaf9f303c44288d53e6c1b73cc077e538 Mon Sep 17 00:00:00 2001 From: danymat Date: Sun, 9 Jan 2022 14:35:53 +0100 Subject: [PATCH] fix(lua) Ldoc annotation was not annotating in class --- lua/neogen/configurations/lua.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/neogen/configurations/lua.lua b/lua/neogen/configurations/lua.lua index 6b6054a..03acc75 100644 --- a/lua/neogen/configurations/lua.lua +++ b/lua/neogen/configurations/lua.lua @@ -157,8 +157,9 @@ return { { "type", "- @type $1" }, }, ldoc = { - { nil, "- $1", { no_results = true, type = { "func" } } }, - { nil, "- $1", { type = { "func" } } }, + { nil, "- $1", { no_results = true, type = { "func", "class" } } }, + { nil, "- $1", { type = { "func", "class" } } }, + { "parameters", " @tparam $1|any %s " }, { "return_statement", " @treturn $1|any" }, },