fix: Places file annotations always on top

This commit is contained in:
danymat
2022-01-09 14:14:23 +01:00
parent 23031e365b
commit 24a0498477
3 changed files with 32 additions and 8 deletions

View File

@@ -140,6 +140,11 @@ return {
if not result then
return nil
end
if node_info.current == nil then
return result
end
-- if the function happens to be a function template we want to place
-- the annotation before the template statement and extract the
-- template parameters names as well