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

Language-specific configuration #836

Closed
Omnikar opened this issue Oct 13, 2021 · 7 comments
Closed

Language-specific configuration #836

Omnikar opened this issue Oct 13, 2021 · 7 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@Omnikar
Copy link
Contributor

Omnikar commented Oct 13, 2021

Describe your feature request

The ability to set specific configuration options which only take effect for files of a specific language, like VSCode's "[language]" in settings.json.

@Omnikar Omnikar added the C-enhancement Category: Improvements label Oct 13, 2021
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Oct 13, 2021
@kirawi
Copy link
Member

kirawi commented Nov 3, 2021

I think we already have this: [languages.config]

@Omnikar
Copy link
Contributor Author

Omnikar commented Nov 4, 2021

I think we already have this: [languages.config]

That is language server config. I am talking about editor configuration specific to files of a certain language.

@kirawi kirawi added the E-good-first-issue Call for participation: Issues suitable for new contributors label Nov 5, 2021
@kirawi kirawi added E-easy Call for participation: Experience needed to fix: Easy / not much and removed E-good-first-issue Call for participation: Issues suitable for new contributors labels Nov 19, 2021
@eguiraud
Copy link

I was looking for this and found out that for the specific option I wanted to set for a language (soft-wrap) there is an undocumented toggle: #6680 .

In general it would be nice to be able to specify arbitrary options depending on the file's language.

@SecretPocketCat
Copy link

SecretPocketCat commented Oct 17, 2023

I wanted to take a stab at this, but I've encountered a few blockers though.

Themes

  • splits can't be themed on there own, so language-specific themes wouldn't cover everything. Should I create an issue for that or should that be a part a PR for this?

Editor config

@pascalkuthe pascalkuthe removed the E-easy Call for participation: Experience needed to fix: Easy / not much label Oct 17, 2023
@SecretPocketCat
Copy link

@pascalkuthe Any pointers or is this just low prio and/or I should take the removal of the easy label as a hint to find something easier to look into 🙂?

@the-mikedavis
Copy link
Member

Yeah, I don't think it will be very easy to solve this and we may want to wait until we switch from toml to scheme with scripting for configuration: language-specific config could be solved by making config a function of the language or by overriding the configuration by taking the old configuration as a function parameter. Whatever work we would commit for toml-based configuration would probably not fit well with how we would solve this with scheme-based config

@pascalkuthe
Copy link
Member

closing in favor #8853

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

6 participants