From 3570869c9ae2c4df14b15423789919e514322916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 7 Dec 2016 16:49:29 +0100 Subject: Move all lua related files to lua/ subfolder Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed. --- lexers/themes/solarized.lua | 59 --------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 lexers/themes/solarized.lua (limited to 'lexers/themes/solarized.lua') diff --git a/lexers/themes/solarized.lua b/lexers/themes/solarized.lua deleted file mode 100644 index fcbd704..0000000 --- a/lexers/themes/solarized.lua +++ /dev/null @@ -1,59 +0,0 @@ --- Solarized color codes Copyright (c) 2011 Ethan Schoonover -local lexers = vis.lexers - -local colors = { - ['base03'] = '234', -- '#002b36', - ['base02'] = '235', -- '#073642', - ['base01'] = '239', -- '#586e75', - ['base00'] = '240', -- '#657b83', - ['base0'] = '244', -- '#839496', - ['base1'] = '245', -- '#93a1a1', - ['base2'] = '187', -- '#eee8d5', - ['base3'] = '230', -- '#fdf6e3', - ['yellow'] = '136', -- '#b58900', - ['orange'] = '166', -- '#cb4b16', - ['red'] = '124', -- '#dc322f', - ['magenta'] = '125', -- '#d33682', - ['violet'] = '61', -- '#6c71c4', - ['blue'] = '33', -- '#268bd2', - ['cyan'] = '37', -- '#2aa198', - ['green'] = '64', -- '#859900', -} - -lexers.colors = colors --- dark -local fg = ',fore:'..colors.base0..',' -local bg = ',back:'..colors.base03..',' --- light --- local fg = ',fore:'..colors.base03..',' --- local bg = ',back:'..colors.base3..',' - -lexers.STYLE_DEFAULT = bg..fg -lexers.STYLE_NOTHING = bg -lexers.STYLE_CLASS = 'fore:yellow' -lexers.STYLE_COMMENT = 'fore:'..colors.base01 -lexers.STYLE_CONSTANT = 'fore:'..colors.cyan -lexers.STYLE_DEFINITION = 'fore:'..colors.blue -lexers.STYLE_ERROR = 'fore:'..colors.red..',italics' -lexers.STYLE_FUNCTION = 'fore:'..colors.blue -lexers.STYLE_KEYWORD = 'fore:'..colors.green -lexers.STYLE_LABEL = 'fore:'..colors.green -lexers.STYLE_NUMBER = 'fore:'..colors.cyan -lexers.STYLE_OPERATOR = 'fore:'..colors.green -lexers.STYLE_REGEX = 'fore:green' -lexers.STYLE_STRING = 'fore:'..colors.cyan -lexers.STYLE_PREPROCESSOR = 'fore:'..colors.orange -lexers.STYLE_TAG = 'fore:'..colors.red -lexers.STYLE_TYPE = 'fore:'..colors.yellow -lexers.STYLE_VARIABLE = 'fore:'..colors.blue -lexers.STYLE_WHITESPACE = '' -lexers.STYLE_EMBEDDED = 'back:blue' -lexers.STYLE_IDENTIFIER = fg - -lexers.STYLE_LINENUMBER = fg -lexers.STYLE_CURSOR = 'fore:'..colors.base03..',back:'..colors.base0 -lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',back:yellow' -lexers.STYLE_CURSOR_LINE = 'back:'..colors.base02 -lexers.STYLE_COLOR_COLUMN = 'back:'..colors.base02 --- lexers.STYLE_SELECTION = 'back:'..colors.base02 -lexers.STYLE_SELECTION = 'back:white' -- cgit v1.2.3