From 153a6e1b6fe9f3b3658dd09acbbd72ae4a1ae7e0 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 9 May 2023 13:34:04 +0200 Subject: [PATCH] Make some vim->kitty calls async --- vim/plugin/colors.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/plugin/colors.vim b/vim/plugin/colors.vim index 40211cf..35f71d1 100644 --- a/vim/plugin/colors.vim +++ b/vim/plugin/colors.vim @@ -11,8 +11,8 @@ function! s:kitty_bg_color() elseif match(l:num_color, "^#\\x\\{6}$")==0 let l:color=l:num_color end - call system('kitty @ --to $KITTY_LISTEN_ON set-colors background="'.l:color.'"') - call system("cat ".$HOME."/darkrc/kitty_".&bg.".conf | grep cursor | sed -e 's/ /=/' | xargs -L 1 kitty @ --to $KITTY_LISTEN_ON set-colors") + call jobstart('kitty @ --to $KITTY_LISTEN_ON set-colors background="'.l:color.'"') + call jobstart("cat ".$HOME."/darkrc/kitty_".&bg.".conf | grep cursor | sed -e 's/ /=/' | xargs -L 1 kitty @ --to $KITTY_LISTEN_ON set-colors") end end endfun