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

Config formatters/language servers/etc. as a list to allow first item as default and subsequent as fallback choices #12153

Open
heyakyra opened this issue Nov 29, 2024 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@heyakyra
Copy link
Contributor

heyakyra commented Nov 29, 2024

Summary

Currently, users can specify their own languages.toml but it would be nicer still for the root file in helix's codebase to be able to specify a list of possible formatters, etc.

To make it easier for most people with different preferences, if they do not have the default installed, then the next options can be tried automatically. If they have multiple installed but have a different preference, they can override the default priorities in their local config.

This has come up a few times in this PR #12096:

@NikitaRevenco commented:

It would be nice for helix to configure multiple formatters, if it makes sense for the language

@NikitaRevenco commented:

what about prettierd but fallback to prettier if prettierd isn't found? If this is possible

Platform

All

Terminal Emulator

alacritty

Installation Method

source (why no crates.io package for easy cargo install? 😢)

Helix Version

helix 24.7 (079f544)

@heyakyra heyakyra added the C-bug Category: This is a bug label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant