Skip to main content

set_language_config

Function set_language_config 

Source
pub fn set_language_config(
    language: impl AsRef<str>,
    config: LanguageConfig,
    cx: &mut App,
)
Expand description

Replace a language’s editing configuration for this application. Existing editors read the replacement on their next edit. Aliases follow the installed language provider; Base alone treats names case-insensitively. This does not change auto_close or smart_indent preferences.