mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-20 08:05:10 +03:00
Change default cursors to block for all modes
This commit is contained in:
parent
17473b51d3
commit
058796c18e
@ -15,8 +15,9 @@ # Configuration
|
|||||||
mouse = false
|
mouse = false
|
||||||
|
|
||||||
[editor.cursor-shape]
|
[editor.cursor-shape]
|
||||||
normal = "underline"
|
insert = "bar"
|
||||||
insert = "block"
|
normal = "block"
|
||||||
|
select = "underline"
|
||||||
|
|
||||||
[editor.file-picker]
|
[editor.file-picker]
|
||||||
hidden = false
|
hidden = false
|
||||||
@ -46,11 +47,11 @@ ### `[editor.cursor-shape]` Section
|
|||||||
Defines the shape of cursor in each mode. Note that due to limitations
|
Defines the shape of cursor in each mode. Note that due to limitations
|
||||||
of the terminal environment, only the primary cursor can change shape.
|
of the terminal environment, only the primary cursor can change shape.
|
||||||
|
|
||||||
| Key | Description | Default |
|
| Key | Description | Default |
|
||||||
| --- | ----------- | -------- |
|
| --- | ----------- | ------- |
|
||||||
| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
|
| `normal` | Cursor shape in [normal mode][normal mode] | `block` |
|
||||||
| `insert` | Cursor shape in [insert mode][insert mode] | `bar` |
|
| `insert` | Cursor shape in [insert mode][insert mode] | `block` |
|
||||||
| `select` | Cursor shape in [select mode][select mode] | `underline` |
|
| `select` | Cursor shape in [select mode][select mode] | `block` |
|
||||||
|
|
||||||
[normal mode]: ./keymap.md#normal-mode
|
[normal mode]: ./keymap.md#normal-mode
|
||||||
[insert mode]: ./keymap.md#insert-mode
|
[insert mode]: ./keymap.md#insert-mode
|
||||||
|
@ -122,9 +122,9 @@ fn deref(&self) -> &Self::Target {
|
|||||||
impl Default for CursorShapeConfig {
|
impl Default for CursorShapeConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self(hashmap!(
|
Self(hashmap!(
|
||||||
Mode::Insert => CursorKind::Bar,
|
Mode::Insert => CursorKind::Block,
|
||||||
Mode::Normal => CursorKind::Block,
|
Mode::Normal => CursorKind::Block,
|
||||||
Mode::Select => CursorKind::Underline,
|
Mode::Select => CursorKind::Block,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user