mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +08:00
feat(cpicker.nvim): detact_bundle cpicker.nvim
This commit is contained in:
parent
3ed7c00d06
commit
333cb1b714
@ -134,6 +134,51 @@ main () {
|
|||||||
rm -rf detach/$1
|
rm -rf detach/$1
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
cpicker.nvim)
|
||||||
|
git clone https://github.com/wsdjeg/cpicker.nvim.git detach/$1
|
||||||
|
cd detach/$1
|
||||||
|
_checkdir syntax
|
||||||
|
_detact_bundle cpicker.nvim syntax/spacevim_cpicker.vim
|
||||||
|
_detact_bundle cpicker.nvim syntax/spacevim_cpicker_mix.vim
|
||||||
|
_detact_bundle cpicker.nvim README.md
|
||||||
|
_checkdir plugin
|
||||||
|
_detact_bundle cpicker.nvim plugin/cpicker.lua
|
||||||
|
_checkdir lua/cpicker/formats
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/util.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/mix.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/cmyk.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/hsl.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/hsv.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/hwb.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/lab.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/linear.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/rgb.lua
|
||||||
|
_detact_bundle cpicker.nvim lua/cpicker/formats/xyz.lua
|
||||||
|
_checkdir lua/spacevim/api
|
||||||
|
_detact lua/spacevim/api/color.lua
|
||||||
|
_detact lua/spacevim/api/notify.lua
|
||||||
|
_detact lua/spacevim/api/password.lua
|
||||||
|
_checkdir autoload/SpaceVim/api/vim
|
||||||
|
_checkdir autoload/SpaceVim/api/data
|
||||||
|
_detact autoload/SpaceVim/api/notify.vim
|
||||||
|
_detact autoload/SpaceVim/api/data/string.vim
|
||||||
|
_detact autoload/SpaceVim/api/data/number.vim
|
||||||
|
_detact autoload/SpaceVim/api/vim/buffer.vim
|
||||||
|
_detact autoload/SpaceVim/api/vim/floatting.vim
|
||||||
|
_checkdir autoload/SpaceVim/api/neovim
|
||||||
|
_detact autoload/SpaceVim/api/neovim/floatting.vim
|
||||||
|
_detact LICENSE
|
||||||
|
git add .
|
||||||
|
git config user.email "eric@wsdjeg.net"
|
||||||
|
git config user.name "Eric Wong"
|
||||||
|
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||||
|
git remote add wsdjeg_cpicker https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/cpicker.nvim.git
|
||||||
|
git push wsdjeg_cpicker master
|
||||||
|
cd -
|
||||||
|
rm -rf detach/$1
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
iedit)
|
iedit)
|
||||||
git clone https://github.com/wsdjeg/iedit.vim.git detach/$1
|
git clone https://github.com/wsdjeg/iedit.vim.git detach/$1
|
||||||
cd detach/$1
|
cd detach/$1
|
||||||
|
@ -336,8 +336,6 @@ endfunction
|
|||||||
function! s:self.add_highlight(bufnr, hl, line, col, long) abort
|
function! s:self.add_highlight(bufnr, hl, line, col, long) abort
|
||||||
if exists('*nvim_buf_add_highlight')
|
if exists('*nvim_buf_add_highlight')
|
||||||
call nvim_buf_add_highlight(a:bufnr, 0, a:hl, a:line, a:col, a:col + a:long)
|
call nvim_buf_add_highlight(a:bufnr, 0, a:hl, a:line, a:col, a:col + a:long)
|
||||||
else
|
|
||||||
call SpaceVim#logger#warn('vim#buffer.add_highlight api only support neovim')
|
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
36
bundle/cpicker.nvim/README.md
Normal file
36
bundle/cpicker.nvim/README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# cpicker.nvim
|
||||||
|
> A color picker for Neovim
|
||||||
|
|
||||||
|
![cpicker](./img/cpicker.png)
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```
|
||||||
|
Plug 'wsdjeg/cpicker.nvim'
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
:Cpicker rgb hsl
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user