Add vis
This commit is contained in:
parent
91d09704f1
commit
7ecda7ede1
3 changed files with 84 additions and 3 deletions
10
Makefile
10
Makefile
|
|
@ -2,9 +2,13 @@ DESTDIR=$(HOME)
|
||||||
PREFIX=/.config
|
PREFIX=/.config
|
||||||
|
|
||||||
fish:
|
fish:
|
||||||
install -m 600 fish/config.fish $(DESTDIR)$(PREFIX)/fish/config.fish
|
install -Dm600 fish/config.fish $(DESTDIR)$(PREFIX)/fish/config.fish
|
||||||
|
|
||||||
i3:
|
i3:
|
||||||
install -m 600 i3/config $(DESTDIR)$(PREFIX)/i3/config
|
install -Dm600 i3/config $(DESTDIR)$(PREFIX)/i3/config
|
||||||
|
|
||||||
.PHONY: fish
|
vis:
|
||||||
|
install -Dm600 vis/visrc.lua $(DESTDIR)$(PREFIX)/vis/visrc.lua
|
||||||
|
install -Dm700 vis/themes/* -t $(DESTDIR)$(PREFIX)/config/vis/themes/
|
||||||
|
|
||||||
|
.PHONY: fish i3 vis
|
||||||
|
|
|
||||||
63
vis/themes/base16-london-tube.lua
Normal file
63
vis/themes/base16-london-tube.lua
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
-- base16-vis (https://github.com/pshevtsov/base16-vis)
|
||||||
|
-- by Petr Shevtsov
|
||||||
|
-- London Tube scheme by Jan T. Sott
|
||||||
|
|
||||||
|
local lexers = vis.lexers
|
||||||
|
|
||||||
|
local colors = {
|
||||||
|
['base00'] = '#231f20',
|
||||||
|
['base01'] = '#1c3f95',
|
||||||
|
['base02'] = '#5a5758',
|
||||||
|
['base03'] = '#737171',
|
||||||
|
['base04'] = '#959ca1',
|
||||||
|
['base05'] = '#d9d8d8',
|
||||||
|
['base06'] = '#e7e7e8',
|
||||||
|
['base07'] = '#ffffff',
|
||||||
|
['base08'] = '#ee2e24',
|
||||||
|
['base09'] = '#f386a1',
|
||||||
|
['base0A'] = '#ffd204',
|
||||||
|
['base0B'] = '#00853e',
|
||||||
|
['base0C'] = '#85cebc',
|
||||||
|
['base0D'] = '#009ddc',
|
||||||
|
['base0E'] = '#98005d',
|
||||||
|
['base0F'] = '#b06110',
|
||||||
|
}
|
||||||
|
|
||||||
|
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 = ''
|
||||||
14
vis/visrc.lua
Normal file
14
vis/visrc.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
-- load standard vis module, providing parts of the Lua API
|
||||||
|
require('vis')
|
||||||
|
|
||||||
|
vis.events.subscribe(vis.events.INIT, function()
|
||||||
|
-- Your global configuration options
|
||||||
|
end)
|
||||||
|
|
||||||
|
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
|
||||||
|
-- Your per window configuration options e.g.
|
||||||
|
vis:command('set number on')
|
||||||
|
vis:command('set cursorline on')
|
||||||
|
vis:command('set autoindent on')
|
||||||
|
vis:command('set theme base16-london-tube')
|
||||||
|
end)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue