summaryrefslogtreecommitdiff
path: root/helix-core/src/config.rs
blob: 2076fc2244dfec80533f51d2baa3c696dbf94500 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/// Syntax configuration loader based on built-in languages.toml.
pub fn default_syntax_loader() -> crate::syntax::Configuration {
    helix_loader::config::default_lang_config()
        .try_into()
        .expect("Could not serialize built-in languages.toml")
}
/// Syntax configuration loader based on user configured languages.toml.
pub fn user_syntax_loader() -> Result<crate::syntax::Configuration, toml::de::Error> {
    helix_loader::config::user_lang_config()?.try_into()
}