Make sure to use the cterm color attribute
This should fix color selection with true-color enabled terminal neovim.
This commit is contained in:
parent
8efc2d29ab
commit
513ed1ff50
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ endif
|
|||
|
||||
function! s:get_color(attr, ...)
|
||||
for group in a:000
|
||||
let code = synIDattr(synIDtrans(hlID(group)), a:attr)
|
||||
let code = synIDattr(synIDtrans(hlID(group)), a:attr, 'cterm')
|
||||
if code =~ '^[0-9]\+$'
|
||||
return code
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue