I'm trying to write a lua command that writes the current colorscheme out to a file. I can't seem to find a command that actually returns the name of the current colorscheme in lua, only one that prints that colorscheme to the command line.
Basically what i want is something like this;
local CurrentColor = vim.cmd.colorscheme()
-- ^^^ this doesn't work because vim.cmd.x returns nothing into lua env
except that it actually works.
I have been grepping around the helpfiles for the lua api, but so far I have found nothing helpful.