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

[suggestion]: Derive stylua.toml, similarly to .luarc.json #68

Open
vhyrro opened this issue Sep 15, 2024 · 0 comments
Open

[suggestion]: Derive stylua.toml, similarly to .luarc.json #68

vhyrro opened this issue Sep 15, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@vhyrro
Copy link
Contributor

vhyrro commented Sep 15, 2024

I was wondering whether it could be beneficial to contain all metadata inside the project.rockspec file, like so:

package = "my-package"
version = "0.1.0"

-- Rocks-specific utilities
extra = {
    stylua = { ... }, -- Overrides to default stylua configuration
    luarc = { ... }, -- Overrides to default luarc configuration
},

Similarly to jj, which takes a snapshot of the filesystem on every invocation of the program, rocks could create read-only files derived from the configuration upon every invocation (maybe even a rocks regenerate or whatever).

I guess the question is: do we want to make rocks this automatic, or should we leave those files up to the user? I don't think this is trying to reinvent nix, but instead making sure that many developers are on the same page at all times.

@vhyrro vhyrro added enhancement New feature or request question Further information is requested labels Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant