fix: change error when no annotation convention is found

Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This commit is contained in:
Sabu Siyad
2023-01-03 00:52:30 +05:30
parent aae0d3062b
commit 676e6a9a42

View File

@@ -253,9 +253,10 @@ return setmetatable({}, {
local template = language.template local template = language.template
if not template or not template.annotation_convention then if not template or not template.annotation_convention then
notify("Type `" .. node_type .. "` not supported", vim.log.levels.WARN) notify("Language " .. filetype .. " does not support any annotation convention", vim.log.levels.WARN)
return return
end end
annotation_convention = annotation_convention or {} annotation_convention = annotation_convention or {}
if annotation_convention[filetype] and not template[annotation_convention[filetype]] then if annotation_convention[filetype] and not template[annotation_convention[filetype]] then
notify( notify(