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

Partially load the config even when there is an error #1732

Closed
antoyo opened this issue Mar 3, 2022 · 1 comment
Closed

Partially load the config even when there is an error #1732

antoyo opened this issue Mar 3, 2022 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@antoyo
Copy link
Contributor

antoyo commented Mar 3, 2022

Hi.

Describe your feature request

It would be nice if the config could ignore the errors and continue loading the settings that work.
For instance, if I write heme instead of theme, helix will show the following error:

Bad config: unknown field `heme`, expected one of `theme`, `lsp`, `keys`, `editor` at line 1 column 1
Press <ENTER> to continue with default config

but it won't continue loading the other settings, which is inconvenient because you lose your key bindings for instance.

@antoyo antoyo added the C-enhancement Category: Improvements label Mar 3, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Mar 3, 2022
@pascalkuthe
Copy link
Member

I am closing this according to the discussion in #1814.

The TOML config is a stopgap solution that should be kept simple. It will be superseded by a script-based config in the future where partial evaluation is not practical anyway.

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

Successfully merging a pull request may close this issue.

3 participants