In putting together and addon for blender to integrate neovim
.
Where I'm at with it, github colo imported to blender text editor from nvim_gtk
One component is grabbing the current colorscheme of a running vim and importing it into blender's text editor theme.
So far I have some re
code that looks at the return of hi
and follows links if need be till I get a guifg or guibg
# vim is a pynvim.api.nvim.Nvim object
vim_color = vim.command_output(f"highlight {g}")
which for g = "pythonBuiltin"
returns
pythonBuiltin xxx links to GruvboxOrange
and so on
GruvboxOrange xxx ctermfg=208 guifg=#fe8019
in which case I can get the RGB colour for blender from the hex. Other colour codes not so easy. And the code is getting unwieldly.
Could you point me to a more direct way, possibly a plugin, to get the RGB value of a highlight?