Fish's syntax highlighting colors can be configured by changing the values of some environmental variables.
This plugin set these environment variables to predefined colors and export them.
Add scheme name and color definitions to functions/__scheme_get_definition.fish.
echo the new scheme name in the if section.
# If no scheme specified, print available scheme list
if [ -z $scheme_name ]
echo 'default'
# omitted
echo 'SCHEME_NAME' # Add this line
return
endThese names are printed in scheme ls command.
Create a new case in the switch section.
switch $scheme_name
# omitted
case 'SCHEME_NAME' # Add this section
# Define colors using `scheme_color_*` variables here
# Use other scheme definitions as a reference
# omitted
endDefined scheme_color_* variables are referred and exposed in scheme preview/set command.