aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--options.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/options.vim b/options.vim
index f490c6f..f1ff3a3 100644
--- a/options.vim
+++ b/options.vim
@@ -168,4 +168,15 @@ if executable('rg')
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
set grepformat=%f:%l:%c:%m
endif
+
+" Highlight groups for cursor color
+augroup cursor_color
+ autocmd!
+ autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black
+ autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
+augroup END
+
+" Set up cursor color and shape in various mode, ref:
+" https://github.com/neovim/neovim/wiki/FAQ#how-to-change-cursor-color-in-the-terminal
+set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor2/lCursor2,r-cr:hor20,o:hor20
"}