aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-11-10 00:06:14 +0800
committerAaron LI <aly@aaronly.me>2018-11-10 00:06:14 +0800
commit17b256c4c04931a1c8f7c85a91b3d30e575da77f (patch)
tree3e476881f9d0b1eada32adb9caabc482b0d948e2
parent19fc2938e9c9f50ba16cee891e37d5d064578147 (diff)
downloaddotfiles-17b256c4c04931a1c8f7c85a91b3d30e575da77f.tar.bz2
Add basic config for vis (https://github.com/martanne/vis)
-rw-r--r--_config/vis/themes/acme.lua37
-rw-r--r--_config/vis/themes/base16-solarized-dark.lua63
-rw-r--r--_config/vis/themes/base16-solarized-light.lua63
-rw-r--r--_config/vis/visrc.lua17
4 files changed, 180 insertions, 0 deletions
diff --git a/_config/vis/themes/acme.lua b/_config/vis/themes/acme.lua
new file mode 100644
index 0000000..3b32037
--- /dev/null
+++ b/_config/vis/themes/acme.lua
@@ -0,0 +1,37 @@
+-- Acme editor color scheme
+local lexers = vis.lexers
+
+lexers.STYLE_DEFAULT = 'back:#ffffeb,fore:black'
+lexers.STYLE_NOTHING = 'back:white'
+lexers.STYLE_CLASS = 'fore:black'
+lexers.STYLE_COMMENT = 'fore:black'
+lexers.STYLE_CONSTANT = 'fore:black'
+lexers.STYLE_DEFINITION = 'fore:black'
+lexers.STYLE_ERROR = 'fore:red'
+lexers.STYLE_FUNCTION = 'fore:black'
+lexers.STYLE_KEYWORD = 'fore:black'
+lexers.STYLE_LABEL = 'fore:black'
+lexers.STYLE_NUMBER = 'fore:black'
+lexers.STYLE_OPERATOR = 'fore:black'
+lexers.STYLE_REGEX = 'fore:black'
+lexers.STYLE_STRING = 'fore:black'
+lexers.STYLE_PREPROCESSOR = 'fore:black'
+lexers.STYLE_TAG = 'fore:black'
+lexers.STYLE_TYPE = 'fore:black'
+lexers.STYLE_VARIABLE = 'fore:black'
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = 'back:black'
+lexers.STYLE_IDENTIFIER = 'fore:black'
+
+lexers.STYLE_LINENUMBER = 'fore:black'
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'reverse'
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:#90ece9'
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:#e6ffff'
+lexers.STYLE_SELECTION = 'back:#eaed8d'
+lexers.STYLE_STATUS = 'back:#e6ffff'
+lexers.STYLE_STATUS_FOCUSED = 'back:#e6ffff,bold'
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:default,back:default,bold'
+lexers.STYLE_EOF = ''
diff --git a/_config/vis/themes/base16-solarized-dark.lua b/_config/vis/themes/base16-solarized-dark.lua
new file mode 100644
index 0000000..a39048e
--- /dev/null
+++ b/_config/vis/themes/base16-solarized-dark.lua
@@ -0,0 +1,63 @@
+-- base16-vis (https://github.com/pshevtsov/base16-vis)
+-- by Petr Shevtsov
+-- Solarized Dark scheme by Ethan Schoonover (http://ethanschoonover.com/solarized)
+
+local lexers = vis.lexers
+
+local colors = {
+ ['base00'] = '#002b36',
+ ['base01'] = '#073642',
+ ['base02'] = '#586e75',
+ ['base03'] = '#657b83',
+ ['base04'] = '#839496',
+ ['base05'] = '#93a1a1',
+ ['base06'] = '#eee8d5',
+ ['base07'] = '#fdf6e3',
+ ['base08'] = '#dc322f',
+ ['base09'] = '#cb4b16',
+ ['base0A'] = '#b58900',
+ ['base0B'] = '#859900',
+ ['base0C'] = '#2aa198',
+ ['base0D'] = '#268bd2',
+ ['base0E'] = '#6c71c4',
+ ['base0F'] = '#d33682',
+}
+
+lexers.colors = colors
+
+local fg = ',fore:'..colors.base05..','
+local bg = ',back:'..colors.base00..','
+
+lexers.STYLE_DEFAULT = bg..fg
+lexers.STYLE_NOTHING = bg
+lexers.STYLE_CLASS = 'fore:'..colors.base0A
+lexers.STYLE_COMMENT = 'fore:'..colors.base03..',italics'
+lexers.STYLE_CONSTANT = 'fore:'..colors.base09
+lexers.STYLE_DEFINITION = 'fore:'..colors.base0E
+lexers.STYLE_ERROR = 'fore:'..colors.base08..',italics'
+lexers.STYLE_FUNCTION = 'fore:'..colors.base0D
+lexers.STYLE_KEYWORD = 'fore:'..colors.base0E
+lexers.STYLE_LABEL = 'fore:'..colors.base0A
+lexers.STYLE_NUMBER = 'fore:'..colors.base09
+lexers.STYLE_OPERATOR = 'fore:'..colors.base05
+lexers.STYLE_REGEX = 'fore:'..colors.base0C
+lexers.STYLE_STRING = 'fore:'..colors.base0B
+lexers.STYLE_PREPROCESSOR = 'fore:'..colors.base0A
+lexers.STYLE_TAG = 'fore:'..colors.base0A
+lexers.STYLE_TYPE = 'fore:'..colors.base0A
+lexers.STYLE_VARIABLE = 'fore:'..colors.base0D
+lexers.STYLE_WHITESPACE = 'fore:'..colors.base02
+lexers.STYLE_EMBEDDED = 'fore:'..colors.base0F
+lexers.STYLE_IDENTIFIER = 'fore:'..colors.base08
+
+lexers.STYLE_LINENUMBER = 'fore:'..colors.base02..',back:'..colors.base00
+lexers.STYLE_CURSOR = 'fore:'..colors.base00..',back:'..colors.base05
+lexers.STYLE_CURSOR_PRIMARY = 'fore:'..colors.base00..',back:'..colors.base05
+lexers.STYLE_CURSOR_LINE = 'back:'..colors.base01
+lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base01
+lexers.STYLE_SELECTION = 'back:'..colors.base02
+lexers.STYLE_STATUS = 'fore:'..colors.base04..',back:'..colors.base01
+lexers.STYLE_STATUS_FOCUSED = 'fore:'..colors.base09..',back:'..colors.base01
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:default,back:default,bold'
+lexers.STYLE_EOF = ''
diff --git a/_config/vis/themes/base16-solarized-light.lua b/_config/vis/themes/base16-solarized-light.lua
new file mode 100644
index 0000000..b19d6ce
--- /dev/null
+++ b/_config/vis/themes/base16-solarized-light.lua
@@ -0,0 +1,63 @@
+-- base16-vis (https://github.com/pshevtsov/base16-vis)
+-- by Petr Shevtsov
+-- Solarized Light scheme by Ethan Schoonover (http://ethanschoonover.com/solarized)
+
+local lexers = vis.lexers
+
+local colors = {
+ ['base00'] = '#fdf6e3',
+ ['base01'] = '#eee8d5',
+ ['base02'] = '#93a1a1',
+ ['base03'] = '#839496',
+ ['base04'] = '#657b83',
+ ['base05'] = '#586e75',
+ ['base06'] = '#073642',
+ ['base07'] = '#002b36',
+ ['base08'] = '#dc322f',
+ ['base09'] = '#cb4b16',
+ ['base0A'] = '#b58900',
+ ['base0B'] = '#859900',
+ ['base0C'] = '#2aa198',
+ ['base0D'] = '#268bd2',
+ ['base0E'] = '#6c71c4',
+ ['base0F'] = '#d33682',
+}
+
+lexers.colors = colors
+
+local fg = ',fore:'..colors.base05..','
+local bg = ',back:'..colors.base00..','
+
+lexers.STYLE_DEFAULT = bg..fg
+lexers.STYLE_NOTHING = bg
+lexers.STYLE_CLASS = 'fore:'..colors.base0A
+lexers.STYLE_COMMENT = 'fore:'..colors.base03..',italics'
+lexers.STYLE_CONSTANT = 'fore:'..colors.base09
+lexers.STYLE_DEFINITION = 'fore:'..colors.base0E
+lexers.STYLE_ERROR = 'fore:'..colors.base08..',italics'
+lexers.STYLE_FUNCTION = 'fore:'..colors.base0D
+lexers.STYLE_KEYWORD = 'fore:'..colors.base0E
+lexers.STYLE_LABEL = 'fore:'..colors.base0A
+lexers.STYLE_NUMBER = 'fore:'..colors.base09
+lexers.STYLE_OPERATOR = 'fore:'..colors.base05
+lexers.STYLE_REGEX = 'fore:'..colors.base0C
+lexers.STYLE_STRING = 'fore:'..colors.base0B
+lexers.STYLE_PREPROCESSOR = 'fore:'..colors.base0A
+lexers.STYLE_TAG = 'fore:'..colors.base0A
+lexers.STYLE_TYPE = 'fore:'..colors.base0A
+lexers.STYLE_VARIABLE = 'fore:'..colors.base0D
+lexers.STYLE_WHITESPACE = 'fore:'..colors.base02
+lexers.STYLE_EMBEDDED = 'fore:'..colors.base0F
+lexers.STYLE_IDENTIFIER = 'fore:'..colors.base08
+
+lexers.STYLE_LINENUMBER = 'fore:'..colors.base02..',back:'..colors.base00
+lexers.STYLE_CURSOR = 'fore:'..colors.base00..',back:'..colors.base05
+lexers.STYLE_CURSOR_PRIMARY = 'fore:'..colors.base00..',back:'..colors.base05
+lexers.STYLE_CURSOR_LINE = 'back:'..colors.base01
+lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base01
+lexers.STYLE_SELECTION = 'back:'..colors.base02
+lexers.STYLE_STATUS = 'fore:'..colors.base04..',back:'..colors.base01
+lexers.STYLE_STATUS_FOCUSED = 'fore:'..colors.base09..',back:'..colors.base01
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:default,back:default,bold'
+lexers.STYLE_EOF = ''
diff --git a/_config/vis/visrc.lua b/_config/vis/visrc.lua
new file mode 100644
index 0000000..88a412e
--- /dev/null
+++ b/_config/vis/visrc.lua
@@ -0,0 +1,17 @@
+--[[
+~/.config/vis/visrc.lua
+2018-09-05
+--]]
+
+-- load standard vis module, providing parts of the Lua API
+require('vis')
+
+vis.events.subscribe(vis.events.INIT, function()
+ -- Your global configuration options
+ vis:command('set theme base16-solarized-light')
+end)
+
+vis.events.subscribe(vis.events.WIN_OPEN, function(win)
+ -- Your per window configuration options e.g.
+ -- vis:command('set number')
+end)