Fix a kitty command in vim colour handling

This commit is contained in:
Talia 2021-07-12 11:35:00 +02:00
parent a5e91b70ab
commit 1328c65502

View file

@ -5,9 +5,9 @@ function! s:kitty_bg_color()
if $TERM=="xterm-kitty" if $TERM=="xterm-kitty"
let l:num_color=synIDattr(hlID("normal"), "bg") let l:num_color=synIDattr(hlID("normal"), "bg")
if l:num_color!="" if l:num_color!=""
let l:color=system("kitty @ get-colors | grep 'color".l:num_color." '") let l:color=system("kitty @ get-colors | grep 'color".l:num_color."'")
let l:color=l:color[match(l:color, "#"):] let l:color=l:color[match(l:color, "#"):]
echom system("kitty @ set-colors background=".l:color) echom system('kitty @ set-colors background="'.l:color.'"')
end end
end end
endfun endfun