aboutsummaryrefslogtreecommitdiff
path: root/env/.config/vis
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-04-28 20:55:39 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-04-28 20:55:39 -0500
commited29d871a8b2473577e94bbc12308be04322f385 (patch)
treed117efdc6c62efcd794b0a9d455e24be86c40a59 /env/.config/vis
parent35cc9f4f4d12d63dbe80cf8f1fd84e34e9eecd38 (diff)
Squashed commit of the following:
steam silent removed some nvim plugins vis changes added vis config backup changes backup change
Diffstat (limited to 'env/.config/vis')
-rw-r--r--env/.config/vis/plugins.lua49
-rw-r--r--env/.config/vis/themes/caelus.lua39
-rw-r--r--env/.config/vis/visrc.lua29
3 files changed, 117 insertions, 0 deletions
diff --git a/env/.config/vis/plugins.lua b/env/.config/vis/plugins.lua
new file mode 100644
index 0000000..16003a9
--- /dev/null
+++ b/env/.config/vis/plugins.lua
@@ -0,0 +1,49 @@
+local autoclose = require('plugins/vis-autoclose')
+
+local colorizer = require('plugins/vis-colorizer')
+colorizer.three = false
+colorizer.six = true
+
+local completefilename = require('plugins/complete-filename')
+
+local lsp = require('plugins/vis-lspc')
+
+-- https://git.symlinx.net/vis-modal/
+local modal = require('plugins/vis-modal')
+
+modal.MODES = {
+ [vis.modes.NORMAL] = ' NORMAL ',
+ [vis.modes.INSERT] = ' INSERT ',
+ [vis.modes.VISUAL] = ' VISUAL ',
+ [vis.modes.REPLACE] = ' REPLACE ',
+ [vis.modes.VISUAL_LINE] = ' VISUAL_LINE ',
+ [vis.modes.OPERATOR_PENDING] = ' OPERATOR_PENDING '
+}
+
+modal.STYLES = {
+ [vis.modes.NORMAL] = {
+ REGULAR = 'fore:default,back:yellow',
+ INVERTED = 'fore:yellow,back:black',
+ },
+ [vis.modes.INSERT] = {
+ REGULAR = 'fore:default,back:green',
+ INVERTED = 'fore:green,back:black',
+ },
+ [vis.modes.VISUAL] = {
+ REGULAR = 'fore:default,back:magenta',
+ INVERTED = 'fore:magenta,back:black',
+ },
+ [vis.modes.REPLACE] = {
+ REGULAR = 'fore:default,back:blue',
+ INVERTED = 'fore:blue,back:black',
+ },
+ [vis.modes.VISUAL_LINE] = {
+ REGULAR = 'fore:default,back:magenta',
+ INVERTED = 'fore:magenta,back:black',
+ },
+ [vis.modes.OPERATOR_PENDING] = {
+ REGULAR = 'fore:default,back:blue',
+ INVERTED = 'fore:blue,back:black',
+ },
+}
+
diff --git a/env/.config/vis/themes/caelus.lua b/env/.config/vis/themes/caelus.lua
new file mode 100644
index 0000000..07461a5
--- /dev/null
+++ b/env/.config/vis/themes/caelus.lua
@@ -0,0 +1,39 @@
+local lexers = vis.lexers
+
+local lightyellow = '#efbf71'
+local lightgray = '#9a9c8b'
+local darkgray = '#1e1f1e'
+
+lexers.STYLE_DEFAULT = 'back:000000,fore:white'
+lexers.STYLE_NOTHING = 'back:black'
+lexers.STYLE_CLASS = 'fore:cyan,bold'
+lexers.STYLE_COMMENT = 'fore:white'
+lexers.STYLE_CONSTANT = 'fore:cyan'
+lexers.STYLE_DEFINITION = 'fore:white'
+lexers.STYLE_ERROR = 'fore:red'
+lexers.STYLE_FUNCTION = 'fore:'..lightyellow
+lexers.STYLE_KEYWORD = 'fore:red'
+lexers.STYLE_LABEL = 'fore:white'
+lexers.STYLE_NUMBER = 'fore:magenta'
+lexers.STYLE_OPERATOR = 'fore:white'
+lexers.STYLE_REGEX = 'fore:white'
+lexers.STYLE_STRING = 'fore:green'
+lexers.STYLE_PREPROCESSOR = 'fore:white'
+lexers.STYLE_TAG = 'fore:white'
+lexers.STYLE_TYPE = 'fore:cyan,bold'
+lexers.STYLE_VARIABLE = 'fore:white'
+lexers.STYLE_WHITESPACE = ''
+lexers.STYLE_EMBEDDED = 'fore:white'
+lexers.STYLE_IDENTIFIER = 'fore:blue'
+lexers.STYLE_LINENUMBER = 'fore:white'
+lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER
+lexers.STYLE_CURSOR = 'reverse'
+lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:cyan'
+lexers.STYLE_CURSOR_LINE = 'underlined'
+lexers.STYLE_COLOR_COLUMN = 'back:black'
+lexers.STYLE_SELECTION = 'fore:black,back:yellow'
+lexers.STYLE_STATUS = 'fore:'..darkgray..',back:'..lightgray
+lexers.STYLE_STATUS_FOCUSED = 'fore:'..darkgray..',back:'..lightgray..',bold'
+lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT
+lexers.STYLE_INFO = 'fore:default,back:default,bold'
+lexers.STYLE_EOF = ''
diff --git a/env/.config/vis/visrc.lua b/env/.config/vis/visrc.lua
new file mode 100644
index 0000000..c1c1d1d
--- /dev/null
+++ b/env/.config/vis/visrc.lua
@@ -0,0 +1,29 @@
+-- load standard vis module, providing parts of the Lua API, sets _G.vis
+require('plugins')
+require('vis')
+
+local leader = ' '
+
+vis:map(vis.modes.NORMAL, ' ', '')
+
+vis:map(vis.modes.VISUAL,leader.."y", '"+y"')
+
+-- global configuration options
+vis.events.subscribe(vis.events.INIT, function()
+ vis:command("set theme caelus")
+end)
+
+-- per-window configuration options
+vis.events.subscribe(vis.events.WIN_OPEN, function(win)
+ vis:command("set tabwidth 4")
+ --vis:command("set numbers true")
+ vis:command("set relativenumbers true")
+ vis:command("set autoindent true")
+ vis:command("set expandtab true")
+ vis:map(vis.modes.NORMAL, leader.."pv", function()
+ vis:command("open .")
+ vis:feedkeys("<C-w>k")
+ vis:command("wq!")
+ end, "")
+end)
+