Skip to content

Lua indentation is broken #36

@Umckgil

Description

@Umckgil

Lua Settings
"Lua": {
"tab_size": 3,
"formatter": "language_server",
"format_on_save": "off",
"language_servers": ["lua-language-server"],
},

Actual Behavior:

Image

Expected Behavior:

it should put 'else' and 'elseif' under 'if' in conditional statements. this is correct in vscode.

Hi please find below more gifs to demostrate the issue:

this one still is using tab_size 3

Image

these are when using tab_size 4

Image
Image

from vscode:
Image

@yeskunall

Zed Version and System Specs

Zed: v0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1 (Zed)
OS: macOS 26.2
Memory: 18 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions