aboutsummaryrefslogtreecommitdiff
path: root/autocommands.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-09-22 16:54:00 +0800
committerGitHub <noreply@github.com>2020-09-22 16:54:00 +0800
commit98c81c14889c8c385d51368b14c280f3ce5530b6 (patch)
tree46403540a375aa3f73f71b70f75d0752516331a6 /autocommands.vim
parente2feb0c9f2e80a6a028ad8db39befb6bf23a2857 (diff)
change yank highlight group
Diffstat (limited to 'autocommands.vim')
-rw-r--r--autocommands.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/autocommands.vim b/autocommands.vim
index c8e80ff..e0f2861 100644
--- a/autocommands.vim
+++ b/autocommands.vim
@@ -58,8 +58,13 @@ augroup numbertoggle
augroup END
" highlight yanked region, see `:h lua-highlight`
+augroup custom_highlight
+ autocmd!
+ autocmd ColorScheme * highlight YankColor ctermfg=59 ctermbg=41 guifg=#34495E guibg=#2ECC71
+augroup END
+
augroup highlight_yank
autocmd!
- au TextYankPost * silent! lua vim.highlight.on_yank{higroup="Search", timeout=700}
+ au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=700}
augroup END
"}