diff --git a/lua/neogen/generator.lua b/lua/neogen/generator.lua index 44dcfc0..848ba7f 100644 --- a/lua/neogen/generator.lua +++ b/lua/neogen/generator.lua @@ -247,7 +247,7 @@ return setmetatable({}, { notify("Language " .. filetype .. " not supported.", vim.log.levels.WARN) return end - node_type = (type(node_type) ~= "string" or node_type == "") and "any" or node_type -- Default type + node_type = (type(node_type) ~= "string" or node_type == "") and ANY_TYPE or node_type -- Default type local template = language.template if not template or not template.annotation_convention then