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
1 changed files with 2 additions and 2 deletions

View File

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