This plugin is used to extract color group data from a neovim buffer in the context of vimcolorschemes.com in the objective of generating previews for colorschemes.
- vim syntax highlighting
- treesitter disabled
-- lazy.nvim
{
"vimcolorschemes/extractor.nvim"
}Returns a lua table with the color groups found in the buffer + some extra.
:VCSExtract [colorscheme ...]
Lua API:
require("extractor").extract({
colorschemes = { "default", "gruvbox" }, -- optional
output_path = "/tmp/extracted.json", -- optional
}):VCSColorschemes [{output_path}]
Lua API:
require("extractor").colorschemes({
output_path = "/tmp/colorschemes.json", -- optional
})