From ed29d871a8b2473577e94bbc12308be04322f385 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Tue, 28 Apr 2026 20:55:39 -0500 Subject: Squashed commit of the following: steam silent removed some nvim plugins vis changes added vis config backup changes backup change --- env/.config/vis/plugins.lua | 49 +++++++++++++++++++++++++++++++++++++++ env/.config/vis/themes/caelus.lua | 39 +++++++++++++++++++++++++++++++ env/.config/vis/visrc.lua | 29 +++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 env/.config/vis/plugins.lua create mode 100644 env/.config/vis/themes/caelus.lua create mode 100644 env/.config/vis/visrc.lua (limited to 'env/.config/vis') 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("k") + vis:command("wq!") + end, "") +end) + -- cgit v1.3