diff options
| author | jdhao <jdhao@hotmail.com> | 2021-02-17 17:05:40 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-02-17 17:05:40 +0800 |
| commit | a36041782252c79a2dd20a5488954aaaef196335 (patch) | |
| tree | 8bd65b1bf4c5aaa986623cdc59e8e1ddd1e40b76 | |
| parent | c3bdc7caf09cf6e56180d0a698513b29babf8fec (diff) | |
Move cursor color autocmd to autocommands script
| -rw-r--r-- | core/autocommands.vim | 7 | ||||
| -rw-r--r-- | core/options.vim | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim index 57b07cb..00c48e2 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -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 "} diff --git a/core/options.vim b/core/options.vim index 84a7d09..8a5d5f3 100644 --- a/core/options.vim +++ b/core/options.vim @@ -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 |
