Skip to content

Commit 32a55ba

Browse files
committed
Added setting for mode dependent cursor color
1 parent dffb683 commit 32a55ba

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

helix-term/src/ui/editor.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ impl EditorView {
338338
let primary_cursor_scope: usize = {
339339
if true {
340340
match mode {
341-
Mode::Insert => theme.find_scope_index("ui.statusline.insert"),
342-
Mode::Select => theme.find_scope_index("ui.statusline.select"),
343-
Mode::Normal => theme.find_scope_index("ui.statusline.normal"),
341+
Mode::Insert => theme.find_scope_index("ui.cursor.insert"),
342+
Mode::Select => theme.find_scope_index("ui.cursor.select"),
343+
Mode::Normal => theme.find_scope_index("ui.cursor.normal"),
344344
}
345345
.unwrap_or(cursor_scope)
346346
} else {

runtime/themes/dracula.toml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"ui.cursor" = { fg = "background", bg = "orange", modifiers = ["dim"] }
2424
"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] }
2525
"ui.cursor.primary" = { fg = "background", bg = "cyan", modifiers = ["dim"] }
26+
"ui.cursor.normal" = { fg = "background", bg = "cyan" }
27+
"ui.cursor.insert" = { fg = "background", bg = "green" }
28+
"ui.cursor.select" = { fg = "background", bg = "purple" }
2629
"ui.cursorline.primary" = { bg = "background_dark" }
2730
"ui.help" = { fg = "foreground", bg = "background_dark" }
2831
"ui.linenr" = { fg = "comment" }

0 commit comments

Comments
 (0)