Skip to content
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

[Feature request] Fluent configuration of whitespace insertion #74

Closed
ArmoredPony opened this issue Dec 9, 2022 · 1 comment
Closed
Labels
enhancement New feature or request feature request good first issue Good for newcomers

Comments

@ArmoredPony
Copy link

Currently we have table_append_expression_no_space option that allows + operator not to be wrapped with spaces in statements like t[#t+1]. It would be nice to have more configurable space insertion
For example, don't insert spaces around math operators i^2+1 or exponentiation operator in particular i^2 + 1, don't insert spaces in expression in square brackets t[i+1], don't insert spaces in numeric for ranges for i = 1,7,2 and between multiple variables and/or values in general

a,b = 1,2
for k,v in next,t do print(k,v) end

Can any of these please be done? I usually use your language server to format lua code that after is pasted into another application, and since that application has not much space for code I try to write as compact as possible.

@CppCXY
Copy link
Owner

CppCXY commented Dec 9, 2022

all this can be done after I complete refactor, and after a few versions I will support the plugin.
Need to wait some time

@CppCXY CppCXY added enhancement New feature or request good first issue Good for newcomers feature request labels Dec 9, 2022
CppCXY added a commit that referenced this issue Dec 15, 2022
@CppCXY CppCXY mentioned this issue Jan 4, 2023
16 tasks
@CppCXY CppCXY closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants