colorv mappings
This commit is contained in:
parent
136f78c3c1
commit
dbdb1c23db
|
@ -20,7 +20,7 @@ Plugin 'ctrlpvim/ctrlp.vim'
|
|||
" Obsession
|
||||
Plugin 'tpope/vim-obsession'
|
||||
" vim-css-color
|
||||
Plugin 'ap/vim-css-color'
|
||||
" Plugin 'ap/vim-css-color'
|
||||
" vim-javascript
|
||||
Plugin 'pangloss/vim-javascript'
|
||||
" ultisnips
|
||||
|
@ -242,7 +242,25 @@ let g:gutentags_ctags_exclude = ['package.json', 'Session.vim' ,'package-lock.js
|
|||
"}}}
|
||||
|
||||
" colorV
|
||||
let g:colorv_no_global_map = 1
|
||||
let g:colorv_win_pos = 'top'
|
||||
let g:colorv_preview_area = 0
|
||||
|
||||
nnoremap <space>cv :ColorV<CR>
|
||||
nnoremap <space>ce :ColorVEdit<CR>
|
||||
nnoremap <space>cc :call ToggleColorPreview()<CR>
|
||||
nnoremap <space>ci :ColorVInsert<CR>
|
||||
nnoremap <space>cp :ColorVPicker<CR>
|
||||
|
||||
let g:colorv_is_previewing = 0
|
||||
function ToggleColorPreview() abort
|
||||
if g:colorv_is_previewing == 0
|
||||
execute "ColorVPreview"
|
||||
let g:colorv_is_previewing = 1
|
||||
else
|
||||
execute "ColorVClear"
|
||||
let g:colorv_is_previewing = 0
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" vim: foldmethod=marker
|
||||
|
|
Loading…
Reference in New Issue