Regenerate nvim config
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
-- some
|
||||
-- comment
|
||||
|
||||
--[[
|
||||
another
|
||||
comment
|
||||
--]]
|
||||
@ -0,0 +1,14 @@
|
||||
local x = 10
|
||||
|
||||
if x > 3 then
|
||||
x = 3
|
||||
elseif x < 3 then
|
||||
x = -3
|
||||
else
|
||||
if x > 0 then
|
||||
x = 1
|
||||
end
|
||||
x = 0
|
||||
end
|
||||
|
||||
if x > 2 then
|
||||
@ -0,0 +1,9 @@
|
||||
function foo(x)
|
||||
local bar = function(a, b, c)
|
||||
return a + b + c
|
||||
end
|
||||
return bar(
|
||||
x,
|
||||
1,
|
||||
2)
|
||||
end
|
||||
@ -0,0 +1,14 @@
|
||||
local x = 1
|
||||
|
||||
while x < 10 do
|
||||
x = x + 1
|
||||
break
|
||||
end
|
||||
|
||||
for i = 1,3 do
|
||||
x = x + i
|
||||
end
|
||||
|
||||
repeat
|
||||
x = x + 1
|
||||
until x > 100
|
||||
@ -0,0 +1,3 @@
|
||||
Node.new()
|
||||
:call()
|
||||
:build()
|
||||
@ -0,0 +1,7 @@
|
||||
local a = {
|
||||
{
|
||||
{
|
||||
1
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
-- Issue #2476
|
||||
require("treesitter").setup(
|
||||
)
|
||||
|
||||
local table = {
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
local s = [[
|
||||
a
|
||||
multiline
|
||||
string
|
||||
]]
|
||||
@ -0,0 +1,10 @@
|
||||
local a = {
|
||||
x = 1,
|
||||
y = 2,
|
||||
z = {
|
||||
1, 2, 3,
|
||||
},
|
||||
['hello world'] = {
|
||||
1, 2, 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user