diff --git a/.ci/detach_plugin.sh b/.ci/detach_plugin.sh index 798bc126e..c587e43a1 100755 --- a/.ci/detach_plugin.sh +++ b/.ci/detach_plugin.sh @@ -134,6 +134,51 @@ main () { rm -rf detach/$1 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) git clone https://github.com/wsdjeg/iedit.vim.git detach/$1 cd detach/$1 diff --git a/autoload/SpaceVim/api/vim/buffer.vim b/autoload/SpaceVim/api/vim/buffer.vim index d3a0612a8..0d7e34242 100644 --- a/autoload/SpaceVim/api/vim/buffer.vim +++ b/autoload/SpaceVim/api/vim/buffer.vim @@ -336,8 +336,6 @@ endfunction function! s:self.add_highlight(bufnr, hl, line, col, long) abort if exists('*nvim_buf_add_highlight') 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 endfunction diff --git a/bundle/cpicker.nvim/README.md b/bundle/cpicker.nvim/README.md new file mode 100644 index 000000000..ff5387328 --- /dev/null +++ b/bundle/cpicker.nvim/README.md @@ -0,0 +1,36 @@ +# cpicker.nvim +> A color picker for Neovim + +![cpicker](./img/cpicker.png) + +## Install + +``` +Plug 'wsdjeg/cpicker.nvim' + +``` + +## Usage + +``` +:Cpicker rgb hsl +``` + + + + + + + + + + + + + + + + + + +