add colorizer
This commit is contained in:
parent
2bf7df7c8a
commit
a41f5d476b
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
call plug#begin('~/.config/nvim/plugged')
|
call plug#begin('~/.config/nvim/plugged')
|
||||||
|
|
||||||
Plug 'chrisbra/Colorizer'
|
Plug 'norcalli/nvim-colorizer.lua'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
let g:gitgutter_map_keys = 0
|
let g:gitgutter_map_keys = 0
|
||||||
|
@ -166,6 +166,7 @@ call plug#end()
|
||||||
endif
|
endif
|
||||||
if (has('termguicolors'))
|
if (has('termguicolors'))
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
lua require'colorizer'.setup()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" {%@@ if color.type == "light" @@%} "
|
" {%@@ if color.type == "light" @@%} "
|
||||||
|
@ -336,6 +337,10 @@ call plug#end()
|
||||||
nmap <C-s> :wa<CR>
|
nmap <C-s> :wa<CR>
|
||||||
nmap <C-Q> :wqa<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
|
" Easy comment toggle
|
||||||
nmap <silent> gc :Commentary<CR>
|
nmap <silent> gc :Commentary<CR>
|
||||||
xmap <silent> gc :Commentary<CR>
|
xmap <silent> gc :Commentary<CR>
|
||||||
|
|
Reference in a new issue