Skip to content

Commit

Permalink
chore!: move ccc to ui extras
Browse files Browse the repository at this point in the history
  • Loading branch information
rafi committed May 26, 2024
1 parent 51181c7 commit 4d212a3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ _Note_ that 95% of the plugins are **lazy-loaded**.
| [tenxsoydev/tabs-vs-spaces.nvim] | Hint and fix deviating indentation
| [t9md/vim-quickhl] | Highlight words quickly
| [kevinhwang91/nvim-bqf] | Better quickfix window
| [uga-rosa/ccc.nvim] | Super powerful color picker/colorizer plugin

[neovim/nvim-lspconfig]: https://github.com/neovim/nvim-lspconfig
[folke/neoconf.nvim]: https://github.com/folke/neoconf.nvim
Expand Down Expand Up @@ -662,7 +661,6 @@ _Note_ that 95% of the plugins are **lazy-loaded**.
[tenxsoydev/tabs-vs-spaces.nvim]: https://github.com/tenxsoydev/tabs-vs-spaces.nvim
[t9md/vim-quickhl]: https://github.com/t9md/vim-quickhl
[kevinhwang91/nvim-bqf]: https://github.com/kevinhwang91/nvim-bqf
[uga-rosa/ccc.nvim]: https://github.com/uga-rosa/ccc.nvim

</details>

Expand Down Expand Up @@ -832,6 +830,7 @@ Spec: `rafi.plugins.extras.ui.<name>`
| ----------------- | -------------- | ----------------------
| `alpha` | [goolord/alpha-nvim] | Fast and fully programmable greeter
| `barbecue` | [utilyre/barbecue.nvim] | VS Code like winbar
| `ccc` | [uga-rosa/ccc.nvim] | Super powerful color picker/colorizer plugin
| `cursorword` | [itchyny/cursorword] | Underlines word under cursor
| `cybu` | [ghillb/cybu.nvim] | Cycle buffers with a customizable notification window
| `deadcolumn` | [Bekaboo/deadcolumn.nvim] | Show colorcolumn dynamically
Expand All @@ -846,6 +845,7 @@ Spec: `rafi.plugins.extras.ui.<name>`

[goolord/alpha-nvim]: https://github.com/goolord/alpha-nvim
[utilyre/barbecue.nvim]: https://github.com/utilyre/barbecue.nvim
[uga-rosa/ccc.nvim]: https://github.com/uga-rosa/ccc.nvim
[itchyny/cursorword]: https://github.com/itchyny/vim-cursorword
[ghillb/cybu.nvim]: https://github.com/ghillb/cybu.nvim
[Bekaboo/deadcolumn.nvim]: https://github.com/Bekaboo/deadcolumn.nvim
Expand Down
30 changes: 30 additions & 0 deletions lua/rafi/plugins/extras/ui/ccc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
return {

-- Super powerful color picker/colorizer plugin
{
'uga-rosa/ccc.nvim',
event = 'FileType',
keys = {
{ '<Leader>mc', '<cmd>CccPick<CR>', desc = 'Color-picker' },
},
opts = {
highlighter = {
auto_enable = true,
lsp = true,
filetypes = {
'html',
'lua',
'css',
'scss',
'sass',
'less',
'stylus',
'javascript',
'tmux',
'typescript',
},
excludes = { 'lazy', 'mason', 'help', 'neo-tree' },
},
},
},
}
29 changes: 0 additions & 29 deletions lua/rafi/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -481,33 +481,4 @@ return {
},
},
},

-----------------------------------------------------------------------------
-- Super powerful color picker/colorizer plugin
{
'uga-rosa/ccc.nvim',
event = 'FileType',
keys = {
{ '<Leader>mc', '<cmd>CccPick<CR>', desc = 'Color-picker' },
},
opts = {
highlighter = {
auto_enable = true,
lsp = true,
filetypes = {
'html',
'lua',
'css',
'scss',
'sass',
'less',
'stylus',
'javascript',
'tmux',
'typescript',
},
excludes = { 'lazy', 'mason', 'help', 'neo-tree' },
},
},
},
}

0 comments on commit 4d212a3

Please sign in to comment.