mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
7078e84007
YAML indents queries are tweaked to fix auto indent behavior. A new capture type `indent.always` is introduced to address use cases where combining indent captures on a single line is desired. Fixes #6661
27 lines
545 B
Rust
27 lines
545 B
Rust
#[cfg(feature = "integration")]
|
|
mod test {
|
|
mod helpers;
|
|
|
|
use helix_core::{syntax::AutoPairConfig, Selection};
|
|
use helix_term::config::Config;
|
|
|
|
use indoc::indoc;
|
|
|
|
use self::helpers::*;
|
|
|
|
#[tokio::test(flavor = "multi_thread")]
|
|
async fn hello_world() -> anyhow::Result<()> {
|
|
test(("#[\n|]#", "ihello world<esc>", "hello world#[|\n]#")).await?;
|
|
Ok(())
|
|
}
|
|
|
|
mod auto_indent;
|
|
mod auto_pairs;
|
|
mod commands;
|
|
mod languages;
|
|
mod movement;
|
|
mod picker;
|
|
mod prompt;
|
|
mod splits;
|
|
}
|