aboutsummaryrefslogblamecommitdiffstats
path: root/papercolor.lua
blob: 0ef6bde802886a0ac127a5a706b04620db8cbf35 (plain) (tree)
1
2
                                                                        
                                                                                         







































































                                                                                                 























































































































                                                                             
-- PaperColor codes Copyright (c) 2016 Nguyen Nguyen <NLKNguyen@MSN.com>
-- https://github.com/jceb/dotfiles/blob/master/editors/.config/vis/themes/papercolor.lua
local lexers = vis.lexers

local colors = {
	['foreground']       = '#444444',
	['background']       = '#EDEDED',

	['red']              = '#df0000', -- Include/Exception
	['green']            = '#008700', -- Boolean/Special
	['blue']             = '#4271ae', -- Keyword

	['pink']             = '#d7005f', -- Type
	['olive']            = '#718c00', -- String
	['navy']             = '#005f87', -- StorageClass

	['orange']           = '#d75f00', -- Number
	['purple']           = '#8959a8', -- Repeat/Conditional
	['aqua']             = '#3e999f', -- Operator/Delimiter

	['magenta']          = '#d33682',
	['violet']           = '#6c71c4',
	['cyan']             = '#2aa198',

	['selection']        = '#bcbcbc',
	['base02']           = '#073642',
	['comment']          = '#878787',

	['cursorline']       = '#e4e4e4',
	['cursorbackground'] = '#87afd7',
	['cursorforeground'] = '#f5f5f5',
}

lexers.colors = colors
-- light
local fg = 'fore:'..colors.foreground
local bg = 'back:'..colors.background

-- use background color of terminal instead of defining it here
lexers.STYLE_DEFAULT        = fg
-- lexers.STYLE_DEFAULT        = fg..','..bg
lexers.STYLE_NOTHING        = ''
lexers.STYLE_CLASS          = 'fore:'..colors.navy
lexers.STYLE_COMMENT        = 'fore:'..colors.comment
lexers.STYLE_CONSTANT       = 'fore:'..colors.orange
lexers.STYLE_DEFINITION     = 'fore:'..colors.blue
lexers.STYLE_ERROR          = 'fore:'..colors.red..',italics'
lexers.STYLE_FUNCTION       = 'fore:'..colors.blue
lexers.STYLE_KEYWORD        = 'fore:'..colors.navy..',bold'
lexers.STYLE_LABEL          = 'fore:'..colors.blue
lexers.STYLE_NUMBER         = 'fore:'..colors.orange
lexers.STYLE_OPERATOR       = 'fore:'..colors.aqua
lexers.STYLE_REGEX          = 'fore:'..colors.aqua
lexers.STYLE_STRING         = 'fore:'..colors.olive
lexers.STYLE_PREPROCESSOR   = 'fore:'..colors.red
lexers.STYLE_TAG            = 'fore:'..colors.green
lexers.STYLE_TYPE           = 'fore:'..colors.pink..',bold'
lexers.STYLE_VARIABLE       = 'fore:'..colors.blue
lexers.STYLE_WHITESPACE     = ''
lexers.STYLE_EMBEDDED       = 'fore:'..colors.blue
lexers.STYLE_IDENTIFIER     = fg

lexers.STYLE_LINENUMBER     = 'fore:'..colors.selection
lexers.STYLE_LINENUMBER_CURSOR = 'back:'..colors.cursorline
lexers.STYLE_CURSOR         = 'fore:'..colors.cursorforeground..',back:'..colors.cursorbackground
lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',back:'..colors.magenta
lexers.STYLE_CURSOR_LINE    = 'back:'..colors.cursorline
lexers.STYLE_COLOR_COLUMN   = 'back:'..colors.cursorline
lexers.STYLE_SELECTION      = 'back:'..colors.selection
lexers.STYLE_STATUS         = 'reverse'
lexers.STYLE_STATUS_FOCUSED = 'reverse,bold'
lexers.STYLE_SEPARATOR      = lexers.STYLE_DEFAULT
lexers.STYLE_INFO           = 'fore:default,back:default,bold'
lexers.STYLE_EOF            = ''

-- lexer specific styles

-- Diff
lexers.STYLE_ADDITION = 'fore:green'
lexers.STYLE_DELETION = 'fore:red'
lexers.STYLE_CHANGE = 'fore:yellow'

-- CSS
lexers.STYLE_PROPERTY = lexers.STYLE_ATTRIBUTE
lexers.STYLE_PSEUDOCLASS = ''
lexers.STYLE_PSEUDOELEMENT = ''

-- HTML
lexers.STYLE_TAG_UNKNOWN = lexers.STYLE_TAG .. ',italics'
lexers.STYLE_TAG_SINGLE = lexers.STYLE_TAG
lexers.STYLE_TAG_DOCTYPE = lexers.STYLE_TAG .. ',bold'
lexers.STYLE_ATTRIBUTE_UNKNOWN = lexers.STYLE_ATTRIBUTE .. ',italics'

-- Latex, TeX, and Texinfo
lexers.STYLE_COMMAND = lexers.STYLE_KEYWORD
lexers.STYLE_COMMAND_SECTION = lexers.STYLE_CLASS
lexers.STYLE_ENVIRONMENT = lexers.STYLE_TYPE
lexers.STYLE_ENVIRONMENT_MATH = lexers.STYLE_NUMBER

-- Makefile
lexers.STYLE_TARGET = ''

-- Markdown
lexers.STYLE_HR = ''
for i = 1,6 do lexers['STYLE_HEADING_H'..i] = lexers.STYLE_HEADING end
lexers.STYLE_BOLD = 'bold'
lexers.STYLE_ITALIC = 'italics'
lexers.STYLE_LIST = lexers.STYLE_KEYWORD
lexers.STYLE_LINK = lexers.STYLE_KEYWORD
lexers.STYLE_REFERENCE = lexers.STYLE_KEYWORD
lexers.STYLE_CODE = lexers.STYLE_EMBEDDED

-- Output
lexers.STYE_FILENAME = ''
lexers.STYLE_LINE = ''
lexers.STYLE_COLUMN = ''
lexers.STYLE_MESSAGE = ''

-- Python
lexers.STYLE_KEYWORD_SOFT = ''

-- Taskpaper
lexers.STYLE_NOTE = ''
lexers.STYLE_TAG_EXTENDED = ''
lexers.STYLE_TAG_DAY = 'fore:yellow'
lexers.STYLE_TAG_OVERDUE = 'fore:red'
lexers.STYLE_TAG_PLAIN = ''

-- XML
lexers.STYLE_CDATA = ''

-- YAML
lexers.STYLE_ERROR_INDENT = 'back:red'

-- The following are temporary styles until their legacy lexers are migrated.

-- Antlr
lexers.STYLE_ACTION = ''

-- Clojure
lexers.STYLE_CLOJURE_KEYWORD = lexers.STYLE_TYPE
lexers.STYLE_CLOJURE_SYMBOL = lexers.STYLE_TYPE .. ',bold'

-- Crystal
--lexers.STYLE_SYMBOL = lexers.STYLE_STRING

-- Gleam
lexers.STYLE_MODULE = lexers.STYLE_CONSTANT
lexers.STYLE_DISCARD = lexers.STYLE_COMMENT

-- Icon
lexers.STYLE_SPECIAL_KEYWORD = lexers.STYLE_TYPE

-- jq
lexers.STYLE_FORMAT = lexers.STYLE_CONSTANT
lexers.STYLE_SYSVAR = lexers.STYLE_CONSTANT .. ',bold'

-- Julia
-- lexers.STYLE_SYMBOL = lexers.STYLE_STRING
lexers.STYLE_CHARACTER = lexers.STYLE_CONSTANT

-- Mediawiki
lexers.STYLE_BEHAVIOR_SWITCH = lexers.STYLE_KEYWORD

-- Moonscript
lexers.STYLE_TBL_KEY = lexers.STYLE_REGEX
lexers.STYLE_SELF_REF = lexers.STYLE_LABEL
lexers.STYLE_PROPER_IDENT = lexers.STYLE_CLASS
lexers.STYLE_FNDEF = lexers.STYLE_PREPROCESSOR
-- lexers.STYLE_SYMBOL = lexers.STYLE_EMBEDDED

-- reST
lexers.STYLE_LITERAL_BLOCK = lexers.STYLE_EMBEDDED
lexers.STYLE_FOOTNOTE_BLOCK = lexers.STYLE_LABEL
lexers.STYLE_CITATION_BLOCK = lexers.STYLE_LABEL
lexers.STYLE_LINK_BLOCK = lexers.STYLE_LABEL
lexers.STYLE_CODE_BLOCK = lexers.STYLE_CODE
lexers.STYLE_DIRECTIVE = lexers.STYLE_KEYWORD
lexers.STYLE_SPHINX_DIRECTIVE = lexers.STYLE_KEYWORD
lexers.STYLE_UNKNOWN_DIRECTIVE = lexers.STYLE_KEYWORD
lexers.STYLE_SUBSTITUTION = lexers.STYLE_VARIABLE
lexers.STYLE_INLINE_LITERAL = lexers.STYLE_EMBEDDED
lexers.STYLE_ROLE = lexers.STYLE_CLASS
lexers.STYLE_INTERPRETED = lexers.STYLE_STRING

-- txt2tags
lexers.STYLE_LINE = 'bold'
for i = 1,5 do lexers['STYLE_H'..i] = lexers.STYLE_HEADING end
lexers.STYLE_IMAGE = 'fore:green'
lexers.STYLE_STRIKE = 'italics'
lexers.STYLE_TAGGED = lexers.STYLE_EMBEDDED
lexers.STYLE_TAGGED_AREA = lexers.STYLE_EMBEDDED
lexers.STYLE_TABLE_SEP = 'fore:green'
lexers.STYLE_HEADER_CELL_CONTENT = 'fore:green'