aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokul Soumya2021-11-29 05:39:04 +0000
committerGokul Soumya2021-11-29 05:39:04 +0000
commit058796c18e786309322731ff68b15a0f3901b60b (patch)
tree241112be83b4a16dcaed22e73898d104b538ffbf
parent17473b51d37001d4966b82d83d61d3e695e8403d (diff)
Change default cursors to block for all modes
-rw-r--r--book/src/configuration.md15
-rw-r--r--helix-view/src/editor.rs4
2 files changed, 10 insertions, 9 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index a40a8959..2998bcdc 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -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
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 9c77f270..b558c183 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -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,
))
}
}