vim: Add == and fix = in the status bar (#21490)

cc @maxbrunsfeld

Release Notes:

- vim: Add ==
This commit is contained in:
Conrad Irwin 2024-12-03 13:18:19 -08:00
parent 1d512ffaba
commit bc332aa0fa
2 changed files with 8 additions and 0 deletions

View file

@ -474,6 +474,13 @@
"<": "vim::CurrentLine"
}
},
{
"context": "vim_operator == eq",
"use_layout_keys": true,
"bindings": {
"=": "vim::CurrentLine"
}
},
{
"context": "vim_operator == gc",
"use_layout_keys": true,

View file

@ -487,6 +487,7 @@ impl Operator {
Operator::Literal {
prefix: Some(prefix),
} => format!("^V{prefix}"),
Operator::AutoIndent => "=".to_string(),
_ => self.id().to_string(),
}
}