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,2 @@
let a = [
]

View File

@ -0,0 +1,4 @@
if_this_is_correct &&
run_this_thing()
.filter()
.map()

View File

@ -0,0 +1,6 @@
const itemById = Array.from(
new Set()
).reduce((byId, item) => {
byId[item.id] = item
return result;
}, {})

View File

@ -0,0 +1,20 @@
class IndentTest {
async isEqual(paramOne, paramTwo) {
if (paramOne === paramTwo) {
return true
}
return false
}
async isNotEqual(
paramOne,
paramTwo,
) {
if (paramOne !== paramTwo) {
return true
}
return false
}
}

View File

@ -0,0 +1,51 @@
const arrow_func = (
a,
b,
c
) => {
log(a, b, c)
}
const arrow_func_without_brace = (a, b, c) =>
log(
a,
b,
c
)
function func_def(
a,
b,
{ c = '' }
) {
log(a, b, c)
}
func_call(
a,
(b) => b
)
chained_func_call()
.map()
.filter()
func_call(
chained_func_call()
.map()
.filter()
)
function prepare_list_fetcher(filter) {
return Object.assign(
async () =>
(
await http.get('/list', {
params: {
filter: filter,
},
})
).data,
{ key: ['/list', filter] }
)
}

View File

@ -0,0 +1,13 @@
if (cond1) {
do_1()
if (cond1a) {
do_1a()
} else {
do_1_fallback()
}
} else if (cond2) {
do_2()
} else {
do_fallback()
}

View File

@ -0,0 +1,16 @@
function test() {
return [
{
test: "test",
test_one: "test",
},
{
test: "test",
test_one: "test",
},
{
test: "test",
test_one: "test",
},
];
}

View File

@ -0,0 +1,2 @@
class A {
}

View File

@ -0,0 +1,5 @@
const obj = {
a: 1,
b: "2",
["c"]: `three`
}

View File

@ -0,0 +1,8 @@
switch (variable) {
case 'case1':
foo();
break;
default:
bar();
}

View File

@ -0,0 +1,6 @@
const value =
condition
? typeof number === 'string'
? Number(number)
: number
: null;

View File

@ -0,0 +1,8 @@
try {
throw Error()
} catch (err) {
throw error
} finally {
console.log("42")
}

View File

@ -0,0 +1,6 @@
let a =
if_this_is_right() && then_this()
a = func_call()
.map()
.filter()