.
This commit is contained in:
parent
87223381f1
commit
e95c7f2726
4 changed files with 85 additions and 159 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
[general]
|
[general]
|
||||||
fontname=Iosevka 12
|
fontname=Iosevka 14
|
||||||
selchars=-A-Za-z0-9,./?%&#:_
|
selchars=-A-Za-z0-9,./?%&#:_
|
||||||
scrollback=1000
|
scrollback=1000
|
||||||
bgcolor=rgb(0,0,0)
|
bgcolor=rgb(0,0,0)
|
||||||
fgcolor=rgb(222,221,218)
|
fgcolor=rgb(222,221,218)
|
||||||
palette_color_0=rgb(0,0,0)
|
palette_color_0=rgb(0,0,0)
|
||||||
palette_color_1=rgb(170,0,0)
|
palette_color_1=rgb(192,28,40)
|
||||||
palette_color_2=rgb(0,170,0)
|
palette_color_2=rgb(0,170,0)
|
||||||
palette_color_3=rgb(170,85,0)
|
palette_color_3=rgb(170,85,0)
|
||||||
palette_color_4=rgb(0,0,170)
|
palette_color_4=rgb(65,77,204)
|
||||||
palette_color_5=rgb(170,0,170)
|
palette_color_5=rgb(170,0,170)
|
||||||
palette_color_6=rgb(0,170,170)
|
palette_color_6=rgb(0,170,170)
|
||||||
palette_color_7=rgb(170,170,170)
|
palette_color_7=rgb(170,170,170)
|
||||||
|
|
|
||||||
|
|
@ -1,155 +0,0 @@
|
||||||
-- Eight-color scheme
|
|
||||||
local lexers = vis.lexers
|
|
||||||
lexers.STYLE_DEFAULT =''
|
|
||||||
lexers.STYLE_NOTHING = ''
|
|
||||||
lexers.STYLE_ATTRIBUTE = 'fore:green,bold'
|
|
||||||
lexers.STYLE_CLASS = 'fore:yellow,bold'
|
|
||||||
lexers.STYLE_COMMENT = 'fore:blue,bold'
|
|
||||||
lexers.STYLE_CONSTANT = 'fore:cyan,bold'
|
|
||||||
lexers.STYLE_DEFINITION = 'fore:blue,bold'
|
|
||||||
lexers.STYLE_ERROR = 'fore:red,italics'
|
|
||||||
lexers.STYLE_FUNCTION = 'fore:blue,bold'
|
|
||||||
lexers.STYLE_HEADING = 'fore:magenta'
|
|
||||||
lexers.STYLE_KEYWORD = 'fore:yellow,bold'
|
|
||||||
lexers.STYLE_LABEL = 'fore:green,bold'
|
|
||||||
lexers.STYLE_NUMBER = 'fore:red,bold'
|
|
||||||
lexers.STYLE_OPERATOR = 'fore:cyan,bold'
|
|
||||||
lexers.STYLE_REGEX = 'fore:green,bold'
|
|
||||||
lexers.STYLE_STRING = 'fore:red,bold'
|
|
||||||
lexers.STYLE_PREPROCESSOR = 'fore:magenta,bold'
|
|
||||||
lexers.STYLE_TAG = 'fore:red,bold'
|
|
||||||
lexers.STYLE_TYPE = 'fore:green,bold'
|
|
||||||
lexers.STYLE_VARIABLE = 'fore:blue,bold'
|
|
||||||
lexers.STYLE_WHITESPACE = ''
|
|
||||||
lexers.STYLE_EMBEDDED = 'back:blue,bold'
|
|
||||||
lexers.STYLE_IDENTIFIER = ''
|
|
||||||
|
|
||||||
lexers.STYLE_LINENUMBER = ''
|
|
||||||
lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
|
|
||||||
lexers.STYLE_CURSOR = 'back:white,fore:black'
|
|
||||||
lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:yellow'
|
|
||||||
lexers.STYLE_CURSOR_LINE = 'underlined'
|
|
||||||
lexers.STYLE_COLOR_COLUMN = 'back:red'
|
|
||||||
lexers.STYLE_SELECTION = 'back:white,bold'
|
|
||||||
lexers.STYLE_STATUS = 'reverse'
|
|
||||||
lexers.STYLE_STATUS_FOCUSED = 'reverse,bold'
|
|
||||||
lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
|
|
||||||
lexers.STYLE_INFO = '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_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
|
|
||||||
|
|
||||||
-- 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_EMBEDDED
|
|
||||||
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'
|
|
||||||
1
files/.config/vis/themes/kento2.lua
Symbolic link
1
files/.config/vis/themes/kento2.lua
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/home/a/dots/files/dots/files/.config/vis/themes/kento2.lua
|
||||||
80
files/.config/vis/themes/wryan.lua
Normal file
80
files/.config/vis/themes/wryan.lua
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
-- wryan.lua
|
||||||
|
|
||||||
|
local lexers = vis.lexers
|
||||||
|
local colors = {
|
||||||
|
['bg'] = '#111111',
|
||||||
|
['fg'] = '#999993',
|
||||||
|
['blk'] = '#333333',
|
||||||
|
['bblk'] = '#3d3d3d',
|
||||||
|
['red'] = '#8c4665',
|
||||||
|
['bred'] = '#bf4d80',
|
||||||
|
['grn'] = '#287373',
|
||||||
|
['bgrn'] = '#53a6a6',
|
||||||
|
['ylw'] = '#7c7c99',
|
||||||
|
['bylw'] = '#9e9ecb',
|
||||||
|
['blu'] = '#395573',
|
||||||
|
['bblu'] = '#477ab3',
|
||||||
|
['mag'] = '#5e468c',
|
||||||
|
['bmag'] = '#7e62b3',
|
||||||
|
['cyn'] = '#31658c',
|
||||||
|
['bcyn'] = '#6096bf',
|
||||||
|
['wht'] = '#899ca1',
|
||||||
|
['bwht'] = '#c0c0c0',
|
||||||
|
|
||||||
|
-- special colors
|
||||||
|
['dim1'] = '#191919',
|
||||||
|
['dim2'] = '#262626'
|
||||||
|
}
|
||||||
|
|
||||||
|
-- general styles
|
||||||
|
lexers.STYLE_DEFAULT = 'fore:'..colors.fg..',back:'..colors.bg -- default fg / bg
|
||||||
|
lexers.STYLE_NOTHING = lexers.STYLE_DEFAULT
|
||||||
|
lexers.STYLE_ATTRIBUTE = 'fore:'..colors.bmag -- attribute names, `<img _src_="foo">`
|
||||||
|
lexers.STYLE_CLASS = 'fore:'..colors.mag -- classes, `class _MyClass_`
|
||||||
|
lexers.STYLE_COMMENT = 'fore:'..colors.bblk -- comments, `_/* foo */_`
|
||||||
|
lexers.STYLE_CONSTANT = lexers.STYLE_DEFAULT -- compiler constants &c, `#define _FOO_ 5`
|
||||||
|
lexers.STYLE_DEFINITION = 'fore:'..colors.bblu -- definitions, overlaps with other tokens
|
||||||
|
lexers.STYLE_ERROR = 'fore:'..colors.bg..',back:'..colors.red -- syntax errors
|
||||||
|
lexers.STYLE_FUNCTION = 'fore:'..colors.bblu -- functions, `void _doBar_()`
|
||||||
|
lexers.STYLE_HEADING = 'fore:'..colors.bmag..',bold' -- headings, like in markdown
|
||||||
|
lexers.STYLE_KEYWORD = 'fore:'..colors.bred -- keywords, `_for_ (;;)`
|
||||||
|
lexers.STYLE_LABEL = 'fore:'..colors.red -- goto &c, `_target_:`
|
||||||
|
lexers.STYLE_NUMBER = 'fore:'..colors.bcyn -- number constants
|
||||||
|
lexers.STYLE_OPERATOR = lexers.STYLE_DEFAULT -- operators, `int foo _=_ 0`
|
||||||
|
lexers.STYLE_REGEX = 'fore:'..colors.red -- regular expressions, `"_^\w*$_"`
|
||||||
|
lexers.STYLE_STRING = 'fore:'..colors.bgrn -- strings, `char* baz = _"hello!"_`
|
||||||
|
lexers.STYLE_PREPROCESSOR = 'fore:'..colors.cyn -- preprocessor rules, `_#define_ FOO 5`
|
||||||
|
lexers.STYLE_TAG = 'fore:'..colors.bblk -- tag names, `<_div_ class="foo">`
|
||||||
|
lexers.STYLE_TYPE = 'fore:'..colors.bgrn -- types, `_int_ foo = 0`
|
||||||
|
lexers.STYLE_VARIABLE = lexers.STYLE_DEFAULT -- variable names, `int _foo_ = 0`
|
||||||
|
lexers.STYLE_WHITESPACE = 'fore:'..colors.blk -- whitespaces
|
||||||
|
lexers.STYLE_EMBEDDED = 'back:'..colors.dim1 -- embedded code
|
||||||
|
lexers.STYLE_IDENTIFIER = lexers.STYLE_DEFAULT -- unclassified names
|
||||||
|
|
||||||
|
-- UI styles
|
||||||
|
lexers.STYLE_LINENUMBER = 'fore:'..colors.blk -- inactive line numbers
|
||||||
|
lexers.STYLE_LINENUMBER_CURSOR = 'fore:'..colors.bcyn -- active line numbers
|
||||||
|
lexers.STYLE_CURSOR = 'fore:'..colors.fg..',reverse' -- cursor color
|
||||||
|
lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR
|
||||||
|
lexers.STYLE_CURSOR_LINE = 'back:'..colors.dim1 -- cursor line
|
||||||
|
lexers.STYLE_COLOR_COLUMN = lexers.STYLE_CURSOR_LINE -- color column
|
||||||
|
lexers.STYLE_SELECTION = lexers.STYLE_CURSOR_LINE -- visual selection
|
||||||
|
lexers.STYLE_STATUS = 'fore:'..colors.bblk..',back:'..colors.dim2 -- inactive statusline
|
||||||
|
lexers.STYLE_STATUS_FOCUSED = 'fore:'..colors.fg..',back:'..colors.dim2 -- active statusline
|
||||||
|
lexers.STYLE_SEPARATOR = lexers.STYLE_COMMENT -- vertical split color
|
||||||
|
lexers.STYLE_BRACKETS = 'fore:'..colors.red..',bold' -- matched brackets, e.g [__]__
|
||||||
|
lexers.STYLE_INFO = 'bold' -- messages from `vis:info()`
|
||||||
|
lexers.STYLE_EOF = 'fore:'..colors.dim2 -- the tildes at the end of the buffer
|
||||||
|
|
||||||
|
-- lexer-specific
|
||||||
|
-- TODO add more...
|
||||||
|
|
||||||
|
-- markdown
|
||||||
|
lexers.STYLE_HR = lexers.STYLE_COMMENT
|
||||||
|
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
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
require("vis")
|
require("vis")
|
||||||
|
|
||||||
vis.events.subscribe(vis.events.INIT, function()
|
vis.events.subscribe(vis.events.INIT, function()
|
||||||
vis:command("set theme kento2")
|
vis:command("set theme wryan")
|
||||||
|
|
||||||
vis.options.autoindent = true
|
vis.options.autoindent = true
|
||||||
vis.options.breakat = " "
|
vis.options.breakat = " "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue