From b95b05fc9af7771f87b84a47f3c3c0b51b49ef91 Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Sat, 20 Apr 2019 21:32:35 +0100 Subject: [PATCH] Configure colorizer plugin --- nvim/nvim.symlink/init.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nvim/nvim.symlink/init.vim b/nvim/nvim.symlink/init.vim index 01e6aa4..14e7167 100644 --- a/nvim/nvim.symlink/init.vim +++ b/nvim/nvim.symlink/init.vim @@ -43,9 +43,7 @@ call plug#begin() Plug 'chrisbra/csv.vim' " CSS Colour previews - " - " Working on changing this, making it use virtual text to render a swatch. - Plug 'chrisbra/Colorizer' + Plug 'maxbucknell/Colorizer', { 'branch': 'neovim-virtual-text' } call plug#end() " I have a true colour terminal, and I will have true colours in my Vim @@ -189,6 +187,11 @@ let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" +" Colorizer adds little colour swatches next to CSS colours +let g:colorizer_auto_filetype='css,less,scss,sass' +let g:colorizer_colornames = 0 +let g:colorizer_use_virtual_text = 1 + " Remap semi-colon to colon. " " Colon is the starting point of a lot of actions in Vim. And I