on master help sign in
Change default cursors to block for all modes
commit058796c18e786309322731ff68b15a0f3901b60b authorGokul Soumya <gokulps15@gmail.com> dateMon 29 Nov 2021, 11:09 (5 years ago) parent17473b5
2 files changed+10−9
book/src/configuration.md+8−7 helix-view/src/editor.rs+2−2
book/src/configuration.md+8−7
@@ -15,8 +15,9 @@ line-number = "relative"
1515mouse = false
1616
1717[editor.cursor-shape]
18−normal = "underline"
19−insert = "block"
18+insert = "bar"
19+normal = "block"
20+select = "underline"
2021
2122[editor.file-picker]
2223hidden = false
@@ -46,11 +47,11 @@ hidden = false
4647Defines the shape of cursor in each mode. Note that due to limitations
4748of the terminal environment, only the primary cursor can change shape.
4849
49−| Key | Description | Default |
50−| --- | ----------- | -------- |
51−| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
52−| `insert` | Cursor shape in [insert mode][insert mode] | `bar` |
53−| `select` | Cursor shape in [select mode][select mode] | `underline` |
50+| Key | Description | Default |
51+| --- | ----------- | ------- |
52+| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
53+| `insert` | Cursor shape in [insert mode][insert mode] | `block` |
54+| `select` | Cursor shape in [select mode][select mode] | `block` |
5455
5556[normal mode]: ./keymap.md#normal-mode
5657[insert mode]: ./keymap.md#insert-mode
helix-view/src/editor.rs+2−2
@@ -122,9 +122,9 @@ impl std::ops::Deref for CursorShapeConfig {
122122impl Default for CursorShapeConfig {
123123 fn default() -> Self {
124124 Self(hashmap!(
125− Mode::Insert => CursorKind::Bar,
125+ Mode::Insert => CursorKind::Block,
126126 Mode::Normal => CursorKind::Block,
127− Mode::Select => CursorKind::Underline,
127+ Mode::Select => CursorKind::Block,
128128 ))
129129 }
130130}