From e8920fc81c322eb836616f8f43d5d835313547dc Mon Sep 17 00:00:00 2001 From: Chris Aumann Date: Tue, 5 Jun 2018 11:02:40 +0200 Subject: [PATCH] Use CursorHold instead of CursorMoved for performance reasons --- autoload/css_color.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/css_color.vim b/autoload/css_color.vim index 1d31847..2d3b12b 100644 --- a/autoload/css_color.vim +++ b/autoload/css_color.vim @@ -236,9 +236,9 @@ function! css_color#enable() augroup CSSColor autocmd! * if has('nvim-0.3.1') - autocmd CursorMoved,CursorMovedI call s:parse_screen() + autocmd CursorHold,CursorHoldI call s:parse_screen() else - autocmd CursorMoved,CursorMovedI call s:parse_screen() | call s:create_matches() + autocmd CursorHold,CursorHoldI call s:parse_screen() | call s:create_matches() autocmd BufWinEnter call s:create_matches() autocmd BufWinLeave call s:clear_matches() endif