Commit: d397c6e2ad9250c01c8459becf6d49094066222e
Parent: e02bc5f5a4dcac55bd00e875cdfecd9aeec1e76e
Author: Randy Palamar
Date: Thu, 23 Mar 2023 09:02:49 -0600
vis: cleanup theme and rename to term
explicitly specifying default makes the file difficult to read
Diffstat:
3 files changed, 39 insertions(+), 38 deletions(-)
diff --git a/.config/vis/themes/dark.lua b/.config/vis/themes/dark.lua
@@ -1,36 +0,0 @@
-local lexers = vis.lexers
-
-lexers.STYLE_DEFAULT = 'back:defualt,fore:default'
-lexers.STYLE_NOTHING = 'back:black'
-lexers.STYLE_CLASS = 'fore:default'
-lexers.STYLE_COMMENT = 'fore:white'
-lexers.STYLE_CONSTANT = 'fore:default'
-lexers.STYLE_DEFINITION = 'fore:default'
-lexers.STYLE_ERROR = 'fore:red'
-lexers.STYLE_FUNCTION = 'fore:default'
-lexers.STYLE_KEYWORD = 'fore:default,bold'
-lexers.STYLE_LABEL = 'fore:default,bold'
-lexers.STYLE_NUMBER = 'fore:default'
-lexers.STYLE_OPERATOR = 'fore:green'
-lexers.STYLE_REGEX = 'fore:default'
-lexers.STYLE_STRING = 'fore:default'
-lexers.STYLE_PREPROCESSOR = 'fore:default,bold'
-lexers.STYLE_TAG = 'fore:default'
-lexers.STYLE_TYPE = 'fore:default,bold'
-lexers.STYLE_VARIABLE = 'fore:default'
-lexers.STYLE_WHITESPACE = ''
-lexers.STYLE_EMBEDDED = 'fore:default'
-lexers.STYLE_IDENTIFIER = 'fore:default'
-
-lexers.STYLE_LINENUMBER = 'fore:white'
-lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
-lexers.STYLE_CURSOR = 'reverse'
-lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR
-lexers.STYLE_CURSOR_LINE = 'underlined'
-lexers.STYLE_COLOR_COLUMN = 'back:#444440'
-lexers.STYLE_SELECTION = 'back:#444440'
-lexers.STYLE_STATUS = 'back:white,fore:black'
-lexers.STYLE_STATUS_FOCUSED = 'back:white,fore:black,bold'
-lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
-lexers.STYLE_INFO = 'fore:default,back:default,bold'
-lexers.STYLE_EOF = ''
-\ No newline at end of file
diff --git a/.config/vis/themes/term.lua b/.config/vis/themes/term.lua
@@ -0,0 +1,38 @@
+local lexers = vis.lexers
+
+local grey0 = '#555551'
+
+lexers.STYLE_DEFAULT = ''
+lexers.STYLE_NOTHING = ''
+lexers.STYLE_CLASS = ''
+lexers.STYLE_COMMENT = ''
+lexers.STYLE_CONSTANT = ''
+lexers.STYLE_DEFINITION = ''
+lexers.STYLE_ERROR = 'fore:red'
+lexers.STYLE_FUNCTION = ''
+lexers.STYLE_KEYWORD = 'fore:,bold'
+lexers.STYLE_LABEL = 'fore:,bold'
+lexers.STYLE_NUMBER = ''
+lexers.STYLE_OPERATOR = 'fore:green'
+lexers.STYLE_REGEX = ''
+lexers.STYLE_STRING = ''
+lexers.STYLE_PREPROCESSOR = 'fore:,bold'
+lexers.STYLE_TAG = ''
+lexers.STYLE_TYPE = 'fore:,bold'
+lexers.STYLE_VARIABLE = ''
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = ''
+lexers.STYLE_IDENTIFIER = ''
+
+lexers.STYLE_LINENUMBER = ''
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'reverse'
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:' .. grey0
+lexers.STYLE_SELECTION = 'back:' .. grey0
+lexers.STYLE_STATUS = 'fore:black,back:white'
+lexers.STYLE_STATUS_FOCUSED = lexers.STYLE_STATUS .. ',bold'
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:,back:,bold'
+lexers.STYLE_EOF = ''
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -10,7 +10,7 @@ spell.default_lang = "en_US"
mww = 72 -- Min Window Width
vis.events.subscribe(vis.events.INIT, function()
- vis:command("set theme dark")
+ vis:command("set theme term")
vis:command("set ai")
vis:command("map normal gq vip=<Escape>")