diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 4378f2627751b..e4df790b5cafe 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -10,7 +10,6 @@ use crate::{ pub use helix_syntax::get_language; use arc_swap::{ArcSwap, Guard}; -use log::debug; use slotmap::{DefaultKey as LayerId, HopSlotMap}; use std::{ @@ -142,15 +141,11 @@ impl Default for AutoPairConfig { impl From<&AutoPairConfig> for Option { fn from(auto_pair_config: &AutoPairConfig) -> Self { - let auto_pairs = match auto_pair_config { + match auto_pair_config { AutoPairConfig::Enable(false) => None, AutoPairConfig::Enable(true) => Some(AutoPairs::default()), AutoPairConfig::Pairs(pairs) => Some(AutoPairs::new(pairs.iter())), - }; - - debug!("auto pairs: {:#?}", auto_pairs); - - auto_pairs + } } } diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 8b7d5e1996d56..5e9e49121f7b8 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -10,6 +10,7 @@ use crate::{ }; use futures_util::future; +use log::debug; use std::{ collections::{BTreeMap, HashMap}, io::stdin, @@ -300,6 +301,8 @@ impl Editor { let language_servers = helix_lsp::Registry::new(); let auto_pairs = (&config.auto_pairs).into(); + debug!("Editor config: {config:#?}"); + // HAXX: offset the render area height by 1 to account for prompt/commandline area.height -= 1;