1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:29:20 +02:00
parent 75eea0c030
commit ef2e28883d
5576 changed files with 604886 additions and 503 deletions

View File

@ -0,0 +1,14 @@
def aligned_indent(arg1,
arg2):
pass
aligned_indent(1,
2)
aligned_indent(1,
2
)
foodsadsa(sdada,
2

View File

@ -0,0 +1,12 @@
if True:
print(1, 2, 3)
if True:
print(
1,
2,
3
)
print(1,
2,
3)

View File

@ -0,0 +1,14 @@
from os import (
path,
name as OsName
)
def foo(x):
pass
class Foo:
def __init__(self):
pass
def foo(self):
pass

View File

@ -0,0 +1,23 @@
# list
a = [
1, 2,
3
]
# set
b = {
3,
4,
}
# dict
c = {
'a': 'b',
'c': 1,
}
# tuple
d = (
1,
2,
)

View File

@ -0,0 +1,31 @@
a = [
1, 2, 3]
b = [
x + 1
for x in range(3)]
c = [[[
1
]]]
d = [[[
4]]]
e = [[
1], 2, 3]
def foo(x, y):
pass
foo(
a,
b)
if (a and
b):
pass
if (a
and b):
pass

View File

@ -0,0 +1,9 @@
def f():
for x in range(1, 2):
if x == 1:
break
def f():
for x in range(1, 2):
if x == 1:
continue

View File

@ -0,0 +1,25 @@
# list
a = [
x + 1 for x in range(3)
]
# dict
b = {
x: x + 1 for x in range(3)
}
# generator
c = (
x * x for x in range(3)
)
# set
d = {
x + x for x in range(3)
}
# other styles
e = [
x + 1 for x
in range(3)
]

View File

@ -0,0 +1,35 @@
if a == a:
x = 1
elif b:
x = 2
else:
x = 3
while False:
pass
for _ in range(3):
pass
with open('/tmp/f', 'w') as f:
pass
try:
pass
except:
pass
finally:
pass
while (a > 4 and
b > 5):
pass
try:
def foo():
print('indentme')
# comment
if True:
pass

View File

@ -0,0 +1,6 @@
def foo(a,
b,
c):
pass
def foobar(a,

View File

@ -0,0 +1,6 @@
d = {1:4,
2:3,
4:5}
d2 = {1:3,

View File

@ -0,0 +1,5 @@
f(1,2,3,
4,5,6)
g(1,2,3,

View File

@ -0,0 +1,5 @@
l = [1,
2,
3]
l2 = [1,

View File

@ -0,0 +1,5 @@
s = {1,
2,
3}
s2 = {1,

View File

@ -0,0 +1,7 @@
(
a,
b,
c,
)
(a,

View File

@ -0,0 +1,7 @@
(
a,
b,
c,
)
(a,

View File

@ -0,0 +1,6 @@
def hanging_indent(
arg1, arg2):
pass
hanging_indent(
1, 2)

View File

@ -0,0 +1,3 @@
def test_branch_else():
if True:
x = 1

View File

@ -0,0 +1,8 @@
a = 2 \
+ 2
b = 'hello' \
'world'
c = lambda x: \
x + 3

View File

@ -0,0 +1,65 @@
(
a,
b
)
foo.bar(
a, b
)
foo = [
1,
2,
3
]
foo = {
"a": 1,
"b": 2,
"c": 3
}
foo = {
1,
2,
3,
}
foo = (
1 + 2
)
(
a for a in range(0, 10)
)
foo = [
a for a in range(0, 10)
]
foo = {
a for a in range(0, 10)
}
foo = {
a: b for a, b in items
}
foo.bar(
"baz")
[
a + b for (
a,
b
)
in items
]
[
a + b for [
a,
b
]
in items
]

View File

@ -0,0 +1,15 @@
a = 0
def test_match_case():
match a:
case 1:
return
def test_match():
match a:
def test_case():
match a:
case b:

View File

@ -0,0 +1,41 @@
a = [
1,
[
2,
[
3
]
]
]
b = [
1, [[
3
],
]
]
c = [[[
3
]]]
d = {
'a': [
2, 3
],
'c': (
[1, 2, 3],
[
2,
4
], {
6,
8
}
)
}
e = (1, 2,
3, 4,
5, 6
)

View File

@ -0,0 +1,39 @@
def a():
return
def a():
return True
def a():
return (1, 2, 3)
def a():
return x.y.z
def a():
return (
1, 2, 3
)
def a():
return b(
1, 2, 3
)
def a():
return [1, 2, 3]
def a():
return {1, 2, 3}
def a():
return {
"a": 1,
"b": 2,
"c": 3
}
def a():
return [
a for a in range (1, 3)
]

View File

@ -0,0 +1,17 @@
a = """
String A
"""
b = """
String B
"""
c = """
String C
"""
d = """
String D
String D
String D
"""