diff --git a/lua/neogen/configurations/python.lua b/lua/neogen/configurations/python.lua index fb5c3f4..72d20c4 100644 --- a/lua/neogen/configurations/python.lua +++ b/lua/neogen/configurations/python.lua @@ -204,7 +204,10 @@ return { if decorator == "@staticmethod" then remove_identifier = false end + elseif node:parent():parent():type() == "function_definition" then + remove_identifier = false end + if remove_identifier then table.remove(res[i.Parameter], 1) if vim.tbl_isempty(res[i.Parameter]) then diff --git a/lua/neogen/init.lua b/lua/neogen/init.lua index 9a6e09c..9df9a22 100644 --- a/lua/neogen/init.lua +++ b/lua/neogen/init.lua @@ -299,7 +299,7 @@ end --- with multiple annotation conventions. ---@tag neogen-changelog ---@toc_entry Changes in neogen plugin -neogen.version = "2.15.1" +neogen.version = "2.15.2" --minidoc_afterlines_end return neogen