1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 11:30:06 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Eric Wong
f725666783 fix(cpicker): disable number and wrap opt 2024-07-24 12:40:21 +08:00
Eric Wong
6497931a27 ci(async): add cpicker.nvim 2024-07-24 10:34:21 +08:00
Eric Wong
333cb1b714 feat(cpicker.nvim): detact_bundle cpicker.nvim 2024-07-24 10:32:11 +08:00
5 changed files with 88 additions and 3 deletions

View File

@ -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

View File

@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "github.vim", "JavaUnit.vim", "git.vim"]
detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "github.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim"]
runs-on: ubuntu-latest
steps:
- name: Checkout

View File

@ -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

View 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
```

View File

@ -141,6 +141,12 @@ M.picker = function(formats)
vim.api.nvim_set_option_value('bufhidden', 'wipe', {
buf = bufnr,
})
vim.api.nvim_set_option_value('wrap', false, {
buf = bufnr,
})
vim.api.nvim_set_option_value('number', false, {
buf = bufnr,
})
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'l', '', {
callback = increase,
})