CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
138 stars 26 forks source link

Force parentheses always #173

Closed sid-6581 closed 3 months ago

sid-6581 commented 3 months ago

It doesn't look like there's a way to force parentheses for function calls to always be present, is that an option that can be added? Right now I have keep, but when I copy/paste code that often doesn't have parentheses, I have to go and add parentheses everywhere manually myself.

CppCXY commented 3 months ago

It does seem like such an option is missing, but I'm currently focused on implement another lua language server

CppCXY commented 3 months ago

I've implemented this feature, but if you use it on nvim, you may need to compile sumneko lua yourself. by the way, if you're interested you can also see my language server

sid-6581 commented 3 months ago

I've implemented this feature, but if you use it on nvim, you may need to compile sumneko lua yourself. by the way, if you're interested you can also see my language server

Thanks for adding that so quickly! I am on nvim, and I'm very interested in trying your new language server. Have you tried it in nvim yet, or just VS Code?

CppCXY commented 3 months ago

I'm not an nvim user, so I've only use the ls on vscode, but I'm sure it can works on non-vscode platforms.