yioneko / nvim-yati

Yet another tree-sitter powered indent plugin for Neovim.
MIT License
149 stars 3 forks source link

Python. Function argument indentation #7

Closed ANtlord closed 2 years ago

ANtlord commented 2 years ago

https://github.com/yioneko/nvim-yati/blob/d3a898e5afd079e1586fe39a45899bf706dfbd12/test/indent/sample.py#L68

Hi

Here is the line with the test case of arguments indentation. The first argument is on the same line as the function name. The test breaks if you extend the function name by a couple of symbols. For example

def very_long_function(a,
                       b,
                       c):

The test case doesn't pass, but should according the proposal https://peps.python.org/pep-0008/#indentation

yioneko commented 2 years ago

Thanks for pointing out, this might be duplicate of #3 and I will try to fix it in the next rewrite.