vim9script
-# Python function call splitter
+# Function call splitter
# Maintainer: Sergey Matveev <stargrave@stargrave.org>
# License: GNU General Public License version 3 of the License or later
#
-# This plugin splits Python function call on several lines.
+# This plugin splits function call on several lines.
#
# def foobar(self, foo: str, bar: Some[thing, too]) -> None:
# to
const Brs = {"(": ")", "[": "]", "{": "}"}
-export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<number>)
- var skip = len(args) == 0 ? 0 : args[1]
+export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<string>)
+ var skip = len(args) == 0 ? 0 : str2nr(args[0])
var shift = get(b:, "defsplit_shift", " ")
var line = getline(".")
var prfx: string