You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately neovim has no support for hlget() yet [0], so this got a
little bit more complicated there.
Also what the hell is wrong with Lua to overcomplicate basic things such
as getting the name of the colorscheme. Apparently we have to use the
generic vimscript command interface [1] just for this.
It's kind of funny how the Lua API now has `api.nvim_cmd()`,
`api.nvim_exec()` and `api.nvim_exec2()` similar to how libc has evolved
to have 1000 alternatives to strcpy() and every year they release a new
version that is apparently safer.
So when will we get `api.nvim_exec3()`? ;)
[0] neovim/neovim#16270
[1] neovim/neovim#18201
vim.health.report_warn(string.format("The colorscheme %s contains %d highlight groups that don't properly support truecolor. These colors might not render correctly in tmux.\nBad highlight groups are: %s", colorscheme, info.bad_colors, vim.inspect(groups)))
30
+
else
31
+
vim.health.report_ok("Colorscheme has true color support")
0 commit comments