Change default cursors to block for all modes

This commit is contained in:
Gokul Soumya 2021-11-29 11:09:04 +05:30
parent 17473b51d3
commit 058796c18e
2 changed files with 10 additions and 9 deletions

View file

@ -15,8 +15,9 @@ line-number = "relative"
mouse = false
[editor.cursor-shape]
normal = "underline"
insert = "block"
insert = "bar"
normal = "block"
select = "underline"
[editor.file-picker]
hidden = false
@ -46,11 +47,11 @@ hidden = false
Defines the shape of cursor in each mode. Note that due to limitations
of the terminal environment, only the primary cursor can change shape.
| Key | Description | Default |
| --- | ----------- | -------- |
| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
| `insert` | Cursor shape in [insert mode][insert mode] | `bar` |
| `select` | Cursor shape in [select mode][select mode] | `underline` |
| Key | Description | Default |
| --- | ----------- | ------- |
| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
| `insert` | Cursor shape in [insert mode][insert mode] | `block` |
| `select` | Cursor shape in [select mode][select mode] | `block` |
[normal mode]: ./keymap.md#normal-mode
[insert mode]: ./keymap.md#insert-mode

View file

@ -122,9 +122,9 @@ impl std::ops::Deref for CursorShapeConfig {
impl Default for CursorShapeConfig {
fn default() -> Self {
Self(hashmap!(
Mode::Insert => CursorKind::Bar,
Mode::Insert => CursorKind::Block,
Mode::Normal => CursorKind::Block,
Mode::Select => CursorKind::Underline,
Mode::Select => CursorKind::Block,
))
}
}