-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect indentation. #213
Comments
I investigated a bit with a smaller example. With: (setq lua-indent-level 2)
(setq lua-indent-nested-block-content-align nil) and starting with the sample code: fun("sample", function (a, b)
print("hi")
end) and point at the beginning of the second line (the one that starts with text The result was: fun("sample", function (a, b)
print("hi")
end) The result was an indentation by 4 spaces here and I think the expectation is that it should be 2 spaces. I think this reproduces the reported behavior. I tried tracing execution of Roughly the overall flow appears to be:
I don't understand the details, but perhaps the above helps a bit with investigation (^^; Also, this issue looked somewhat similar. FWIW, I used Emacs 29.2 and it appears I'm using d074e41 of |
That's because In emacs lua mode, indentation adds up. Indentation should not add up. |
neovim lua mode prefers
emacs lua mode gives me
although lua indent level is 2. It is giving me the indent level of 4.
The text was updated successfully, but these errors were encountered: