From 06d8d3f55fbf02bb4d938ecbc479cd60309a0a5d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 4 Jun 2021 10:50:03 +0900 Subject: Try to detect language when document file path is set Fixes #91 --- helix-term/src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index 3f37c295..0b55921a 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -152,18 +152,6 @@ FLAGS: setup_logging(logpath, args.verbosity).context("failed to initialize logging")?; - // initialize language registry - use helix_core::syntax::{Loader, LOADER}; - - // load $HOME/.config/helix/languages.toml, fallback to default config - let config = std::fs::read(helix_core::config_dir().join("languages.toml")); - let toml = config - .as_deref() - .unwrap_or(include_bytes!("../../languages.toml")); - - let config = toml::from_slice(toml).context("Could not parse languages.toml")?; - LOADER.get_or_init(|| Loader::new(config)); - // TODO: use the thread local executor to spawn the application task separately from the work pool let mut app = Application::new(args).context("unable to create new appliction")?; app.run().await; -- cgit v1.2.3-70-g09d2