I have following configuration in Zed:
also tried this, which didn't help:
However, auto-indent in Lua files sometimes acts like I have 4. For example, if I have my cursor at |:
Pressing <Enter> turns into (looking good so far):
I type something (still looking good):
local tab = {
··a = 1,|
}
But after I press <Enter>, it indents the first line inside the table to 4:
local tab = {
····a = 1,
··|
}
Same goes for functions, if statements, etc:
local function fn()
··local a = 1|
end
<Enter>:
local function fn()
····local a = 1
··|
end
If I set tab_size to 4, there's no issue, because in that case, that's where you want the indents to go.
I have following configuration in Zed:
also tried this, which didn't help:
However, auto-indent in Lua files sometimes acts like I have 4. For example, if I have my cursor at
|:Pressing
<Enter>turns into (looking good so far):I type something (still looking good):
But after I press
<Enter>, it indents the first line inside the table to 4:Same goes for functions, if statements, etc:
<Enter>:If I set
tab_sizeto 4, there's no issue, because in that case, that's where you want the indents to go.