From a41f5d476b26b3935f612116839ac7f1812e06ab Mon Sep 17 00:00:00 2001 From: lelgenio Date: Wed, 28 Oct 2020 03:24:14 -0300 Subject: [PATCH] add colorizer --- dotfiles/nvim.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotfiles/nvim.vim b/dotfiles/nvim.vim index a4606f4..fb3e32a 100644 --- a/dotfiles/nvim.vim +++ b/dotfiles/nvim.vim @@ -20,7 +20,7 @@ call plug#begin('~/.config/nvim/plugged') - Plug 'chrisbra/Colorizer' + Plug 'norcalli/nvim-colorizer.lua' Plug 'tpope/vim-fugitive' Plug 'airblade/vim-gitgutter' let g:gitgutter_map_keys = 0 @@ -166,6 +166,7 @@ call plug#end() endif if (has('termguicolors')) set termguicolors + lua require'colorizer'.setup() endif " {%@@ if color.type == "light" @@%} " @@ -336,6 +337,10 @@ call plug#end() nmap :wa nmap :wqa + " Color yay! 💕 😍 💝 + autocmd BufRead * lua require'colorizer'.attach_to_buffer(0) + nmap gC :ColorizerToggle + " Easy comment toggle nmap gc :Commentary xmap gc :Commentary