dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

term.lua (2184B)


      1 local lexers = vis.lexers
      2 
      3 local grey0 = '#555551'
      4 
      5 lexers.STYLE_DEFAULT           = ''
      6 lexers.STYLE_NOTHING           = ''
      7 lexers.STYLE_ATTRIBUTE         = 'bold'
      8 lexers.STYLE_CLASS             = 'bold'
      9 lexers.STYLE_COMMENT           = 'dim'
     10 lexers.STYLE_CONSTANT          = ''
     11 lexers.STYLE_DEFINITION        = ''
     12 lexers.STYLE_ERROR             = 'fore:red'
     13 lexers.STYLE_FUNCTION          = ''
     14 lexers.STYLE_FUNCTION_BUILTIN  = lexers.STYLE_FUNCTION
     15 lexers.STYLE_FUNCTION_METHOD   = lexers.STYLE_FUNCTION
     16 lexers.STYLE_HEADING           = 'bold'
     17 lexers.STYLE_KEYWORD           = 'bold'
     18 lexers.STYLE_LABEL             = 'bold'
     19 lexers.STYLE_NUMBER            = ''
     20 lexers.STYLE_OPERATOR          = 'fore:yellow'
     21 lexers.STYLE_REGEX             = ''
     22 lexers.STYLE_STRING            = ''
     23 lexers.STYLE_PREPROCESSOR      = 'bold'
     24 lexers.STYLE_TAG               = ''
     25 lexers.STYLE_TYPE              = 'bold'
     26 lexers.STYLE_VARIABLE          = ''
     27 lexers.STYLE_WHITESPACE        = ''
     28 lexers.STYLE_EMBEDDED          = ''
     29 lexers.STYLE_IDENTIFIER        = ''
     30 
     31 lexers.STYLE_LINENUMBER        = ''
     32 lexers.STYLE_LINENUMBER_CURSOR = 'bold'
     33 lexers.STYLE_CURSOR            = 'back:white,fore:black'
     34 lexers.STYLE_CURSOR_PRIMARY    = lexers.STYLE_CURSOR
     35 lexers.STYLE_CURSOR_LINE       = 'underlined'
     36 lexers.STYLE_COLOR_COLUMN      = 'back:' .. grey0
     37 lexers.STYLE_SELECTION         = 'bold,back:' .. grey0
     38 lexers.STYLE_STATUS            = 'fore:black,back:white'
     39 lexers.STYLE_STATUS_FOCUSED    = lexers.STYLE_STATUS .. ',bold'
     40 lexers.STYLE_SEPARATOR         = lexers.STYLE_DEFAULT
     41 lexers.STYLE_INFO              = 'bold'
     42 lexers.STYLE_EOF               = ''
     43 
     44 -- diff
     45 lexers.STYLE_ADDITION          = 'fore:green'
     46 lexers.STYLE_CHANGE            = 'fore:yellow'
     47 lexers.STYLE_DELETION          = 'fore:red'
     48 
     49 -- latex, tex, texinfo
     50 lexers.STYLE_COMMAND           = lexers.STYLE_KEYWORD
     51 lexers.STYLE_COMMAND_SECTION   = lexers.STYLE_CLASS
     52 lexers.STYLE_ENVIRONMENT       = lexers.STYLE_TYPE
     53 lexers.STYLE_ENVIRONMENT_MATH  = lexers.STYLE_NUMBER
     54 
     55 -- markdown and friends
     56 for i = 1,6 do lexers['STYLE_HEADING_H'..i] = 'fore:cyan,bold' end
     57 lexers.STYLE_BOLD              = 'bold'
     58 lexers.STYLE_ITALIC            = 'italics'