on master help sign in
Change default cursors to block for all modes
058796cGokul Soumya
book/src/configuration.md+8−7
@@ -15,8 +15,9 @@ line-number = "relative"
15mouse = false
15mouse = false
16
16
17[editor.cursor-shape]
17[editor.cursor-shape]
18−normal = "underline"
19−insert = "block"
18+insert = "bar"
19+normal = "block"
20+select = "underline"
20
21
21[editor.file-picker]
22[editor.file-picker]
22hidden = false
23hidden = false
@@ -46,11 +47,11 @@ hidden = false
46Defines the shape of cursor in each mode. Note that due to limitations
47Defines the shape of cursor in each mode. Note that due to limitations
47of the terminal environment, only the primary cursor can change shape.
48of the terminal environment, only the primary cursor can change shape.
48
49
49−| Key | Description | Default |
50+| Key | Description | Default |
50−| --- | ----------- | -------- |
51+| --- | ----------- | ------- |
51−| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
52+| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
52−| `insert` | Cursor shape in [insert mode][insert mode] | `bar` |
53+| `insert` | Cursor shape in [insert mode][insert mode] | `block` |
53−| `select` | Cursor shape in [select mode][select mode] | `underline` |
54+| `select` | Cursor shape in [select mode][select mode] | `block` |
54
55
55[normal mode]: ./keymap.md#normal-mode
56[normal mode]: ./keymap.md#normal-mode
56[insert mode]: ./keymap.md#insert-mode
57[insert mode]: ./keymap.md#insert-mode
helix-view/src/editor.rs+2−2
@@ -122,9 +122,9 @@ impl std::ops::Deref for CursorShapeConfig {
122impl Default for CursorShapeConfig {
122impl Default for CursorShapeConfig {
123 fn default() -> Self {
123 fn default() -> Self {
124 Self(hashmap!(
124 Self(hashmap!(
125− Mode::Insert => CursorKind::Bar,
125+ Mode::Insert => CursorKind::Block,
126 Mode::Normal => CursorKind::Block,
126 Mode::Normal => CursorKind::Block,
127− Mode::Select => CursorKind::Underline,
127+ Mode::Select => CursorKind::Block,
128 ))
128 ))
129 }
129 }
130}
130}