Make some vim->kitty calls async

This commit is contained in:
Talia 2023-05-09 13:34:04 +02:00
parent 304b6ba861
commit 153a6e1b6f
1 changed files with 2 additions and 2 deletions

View File

@ -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