diff options
author | Blaž Hrastnik | 2021-06-04 01:50:03 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-04 02:03:40 +0000 |
commit | 06d8d3f55fbf02bb4d938ecbc479cd60309a0a5d (patch) | |
tree | c47d95747397d3b5e00a8b57717b3fc5093646df /helix-term/src | |
parent | 8afd4e1bc21c244a4ed241630a0e845f4ab81f74 (diff) |
Try to detect language when document file path is set
Fixes #91
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/main.rs | 12 |
1 files changed, 0 insertions, 12 deletions
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; |