Closed ilaitinen closed 1 year ago
Good catch! I will have to update the documentation. setup
should be generate
there:
setup
configures the output of generate
, and should (optionally) be run by users. generate
applies the colorscheme, and is meant for use by colorscheme authors.See this snippet from my config for a working example.
I run into type errors on the last line of the Complete example when following the Advanced Usage documentation.
My LSP detected the errors as the following:
Ignoring these and running
:colorscheme NAME
resulted in the following error:When peeking at the referenced line of code, it seems the documentation does not match the code, because
setup()
indeed expects only a single table as an argument.I'm using nvim-highlite v4.12.0 installed via lazy.nvim 10.8.1 on Nvim v0.9.2.
To reproduce:
colors
directory:colorscheme BASENAME_OF_YOUR_NEW_FILE