This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Peculiar inconsistencies of formatting results (e.g. stylua) #1628
Closed
trkwyk
started this conversation in
Show and tell
Replies: 2 comments
-
The wiki stated this problem perfectly clear. My bad, should've skimmed through that first. But the README imo isn't very clear about this situation (language server conflicts formatter). And for my case I thought it was a stylua issue at first so and I didn't get any meaningful results from the repo search. Maybe it's better to include this in the README. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Tried again just found out that the formatting functionality of Lua_ls hasn't been turned on at all so it was not conflict between lua_ls and stylua. Weird. Never mind with this thread. Closing it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some inconsistencies occurred to me when formatting, in my case, Lua files. After hours of debugging finally I found it was because of the conflict between the lua-language-server and stylua as per stated in README.
However, that was not my case. My LSP client didn't ask me to choose the formatter and it just chose the formatter randomly. Perhaps that's because the language server isn't really a formatter albeit it has that very functionality or otherwise I could have detected that problem so much earlier so I report this issue here.
Perhaps update the README if you think that's necessary? @jose-elias-alvarez
Beta Was this translation helpful? Give feedback.
All reactions