diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-05 22:17:34 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-05 22:17:34 +0000 |
| commit | 4023c888138f05a1d7829605b7b884144fece662 (patch) | |
| tree | e1610c887a9700643a61c9ea8b1d248cd9d7dbfd /.config/vis/plugins/vis-modal/README.md | |
| parent | d33d907f53c50d323eca75c4bfc02ab5b989b30a (diff) | |
updated config for modal
Diffstat (limited to '.config/vis/plugins/vis-modal/README.md')
| -rw-r--r-- | .config/vis/plugins/vis-modal/README.md | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/.config/vis/plugins/vis-modal/README.md b/.config/vis/plugins/vis-modal/README.md new file mode 100644 index 0000000..de00c42 --- /dev/null +++ b/.config/vis/plugins/vis-modal/README.md @@ -0,0 +1,65 @@ +<div align="center"> + <h1> + modal + </h1> +</div> + +<div align="center"> + a status line colorizer for vis +</div> + +# Installation +To install vis-modal, clone this repository in your `~/.config/vis/plugins/` directory: +``` +git clone https://git.symlinx.net/vis-modal ~/.config/vis/plugins/vis-modal +``` +Then, you can use it with the default configuration by putting this into your `~/.config/vis/visrc.lua`: +```lua +local modal = require('plugins/vis-modal') +``` + +# Customization +You can change the colors and mode descriptors in vis-modal to your liking, with this template: +``` +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', + }, + UNFOCUSED = { + REGULAR = 'fore:default,back:white', + INVERTED = 'fore:white,back:black', + }, +} +``` |
