fix(py) Disable custom placement for file type (#59)

This commit is contained in:
danymat
2022-02-01 15:16:32 +01:00
parent 098178814c
commit f02e883651

View File

@@ -231,7 +231,7 @@ return {
template = template
:config({
append = { position = "after", child_name = "comment", fallback = "block" }, -- optional: where to append the text (default_generator)
append = { position = "after", child_name = "comment", fallback = "block", disabled = { "file" } },
position = function(node, type)
if type == "file" then
-- Checks if the file starts with #!, that means it's a shebang line