Fix a kitty command in vim colour handling
This commit is contained in:
parent
a5e91b70ab
commit
1328c65502
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue