1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Move cursor color autocmd to autocommands script

This commit is contained in:
jdhao 2021-02-17 17:05:40 +08:00
parent c3bdc7caf0
commit a360417822
2 changed files with 7 additions and 7 deletions

View File

@ -76,4 +76,11 @@ augroup cmd_msg_cls
autocmd!
autocmd CursorHold * call timer_start(25000, funcref('s:empty_message'))
augroup END
" Highlight groups for cursor color
augroup cursor_color
autocmd!
autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=#00c918 guifg=black
autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
augroup END
"}

View File

@ -150,13 +150,6 @@ if executable('rg')
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