Fix termguicolors

This commit is contained in:
Kevin MacMartin 2024-03-05 13:54:49 -05:00
parent dc330b2cdc
commit e859159e49

View file

@ -21,7 +21,7 @@ let colors_name = "darkcloud"
"sets the highlighting for the given group | format: s:C('Name','Foreground','Background','Style')
fun! s:C(group, fg, bg, attr)
if has("gui_running")
if has("gui_running") || &termguicolors
let l:term = "gui"
else
let l:term = "cterm"