add colorizer

This commit is contained in:
lelgenio 2020-10-28 03:24:14 -03:00
parent 2bf7df7c8a
commit a41f5d476b
1 changed files with 6 additions and 1 deletions

View File

@ -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 <C-s> :wa<CR>
nmap <C-Q> :wqa<CR>
" Color yay! 💕 😍 💝
autocmd BufRead * lua require'colorizer'.attach_to_buffer(0)
nmap <silent> gC :ColorizerToggle<CR>
" Easy comment toggle
nmap <silent> gc :Commentary<CR>
xmap <silent> gc :Commentary<CR>