aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2021-09-29 19:55:25 -0600
committerJosh Rahm <rahm@google.com>2021-09-29 19:56:38 -0600
commit5faff8446e23633612df91d37d081a598f556f49 (patch)
tree171ec5107656c742ee200e9575b3189dd344d57e /plugin
parent2ccaf8efc08d4609056fc6fb7a29740d4cfa93e6 (diff)
downloadspectral.vim-5faff8446e23633612df91d37d081a598f556f49.tar.gz
spectral.vim-5faff8446e23633612df91d37d081a598f556f49.tar.bz2
spectral.vim-5faff8446e23633612df91d37d081a598f556f49.zip
More features added to spcetral.
Ability to saturate/desaturate current colors. Highlighting for guicolors in the spectral/colors directory.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/spectral.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/spectral.vim b/plugin/spectral.vim
new file mode 100644
index 0000000..7690b25
--- /dev/null
+++ b/plugin/spectral.vim
@@ -0,0 +1,9 @@
+augroup SpectralHighlight
+ au!
+ au TextChanged */spectral.vim/colors/*.vim call spectral#highlight#highlightLine()
+ au InsertLeave */spectral.vim/colors/*.vim call spectral#highlight#highlightLine()
+ au BufRead */spectral.vim/colors/*.vim call spectral#highlight#clearCache()
+ au BufRead */spectral.vim/colors/*.vim call spectral#highlight#highlight()
+ au ColorScheme */spectral.vim/colors/*.vim call spectral#highlight#clearCache()
+ au Syntax */spectral.vim/colors/*.vim call spectral#highlight#clearCache()
+augroup END