fix: Show error if neogen not setup

This commit is contained in:
danymat
2022-02-10 15:51:28 +01:00
parent f59da94e42
commit 47b4a74a2b

View File

@@ -125,7 +125,7 @@ neogen.configuration = {
--- Currently supported: `func`, `class`, `type`, `file` --- Currently supported: `func`, `class`, `type`, `file`
---@toc_entry Generate annotations ---@toc_entry Generate annotations
neogen.generate = function(opts) neogen.generate = function(opts)
if not conf.enabled then if not conf or not conf.enabled then
notify("Neogen not enabled. Please enable it.", vim.log.levels.WARN) notify("Neogen not enabled. Please enable it.", vim.log.levels.WARN)
return return
end end