Skip to content

vimcolorschemes/extractor.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimcolorschemes/extractor.nvim

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.

Requirements

  • vim syntax highlighting
  • treesitter disabled

Installation

-- lazy.nvim
{
  "vimcolorschemes/extractor.nvim"
}

Usage

Extract colorscheme groups

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
})

List installed colorschemes

:VCSColorschemes [{output_path}]

Lua API:

require("extractor").colorschemes({
  output_path = "/tmp/colorschemes.json", -- optional
})

About

The plugin to extract color data from the vim colorschemes.

Resources

License

Stars

Watchers

Forks

Contributors

Languages