mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-09 20:04:25 +00:00
vim: Add == and fix = in the status bar (#21490)
cc @maxbrunsfeld Release Notes: - vim: Add ==
This commit is contained in:
parent
1d512ffaba
commit
bc332aa0fa
2 changed files with 8 additions and 0 deletions
|
@ -474,6 +474,13 @@
|
||||||
"<": "vim::CurrentLine"
|
"<": "vim::CurrentLine"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"context": "vim_operator == eq",
|
||||||
|
"use_layout_keys": true,
|
||||||
|
"bindings": {
|
||||||
|
"=": "vim::CurrentLine"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"context": "vim_operator == gc",
|
"context": "vim_operator == gc",
|
||||||
"use_layout_keys": true,
|
"use_layout_keys": true,
|
||||||
|
|
|
@ -487,6 +487,7 @@ impl Operator {
|
||||||
Operator::Literal {
|
Operator::Literal {
|
||||||
prefix: Some(prefix),
|
prefix: Some(prefix),
|
||||||
} => format!("^V{prefix}"),
|
} => format!("^V{prefix}"),
|
||||||
|
Operator::AutoIndent => "=".to_string(),
|
||||||
_ => self.id().to_string(),
|
_ => self.id().to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue