fix: change error when no annotation convention is found
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user