✨ feat(nvim): new color picker
This commit is contained in:
parent
eeae2d3095
commit
853b323773
3 changed files with 19 additions and 17 deletions
18
.config/nvim/lua/plugins/ccc.lua
Normal file
18
.config/nvim/lua/plugins/ccc.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
{
|
||||
"uga-rosa/ccc.nvim",
|
||||
event = { "BufRead" },
|
||||
cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" },
|
||||
keys = {
|
||||
{ "<leader>uC", "<cmd>CccHighlighterToggle<cr>", desc = "Toggle Colorizer" },
|
||||
{ "<S-C>", "<cmd>CccConvert<cr>", desc = "Convert color" },
|
||||
{ "<C-c>", "<cmd>CccPick<cr>", desc = "Pick Color" },
|
||||
},
|
||||
opts = {
|
||||
highlighter = {
|
||||
auto_enable = true,
|
||||
lsp = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"ziontee113/color-picker.nvim",
|
||||
cmd = { "PickColor", "PickColorInsert" },
|
||||
opts = {
|
||||
["icons"] = { "ﱢ", "" },
|
||||
["border"] = "rounded", -- none | single | double | rounded | solid | shadow
|
||||
["keymap"] = { -- mapping example:
|
||||
["U"] = "<Plug>ColorPickerSlider5Decrease",
|
||||
["O"] = "<Plug>ColorPickerSlider5Increase",
|
||||
},
|
||||
["background_highlight_group"] = "Normal", -- default
|
||||
["border_highlight_group"] = "FloatBorder", -- default
|
||||
["text_highlight_group"] = "Normal", --default
|
||||
},
|
||||
},
|
||||
}
|
|
@ -2,6 +2,7 @@ return {
|
|||
{
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
enabled = false,
|
||||
opts = {
|
||||
filetypes = { "*", "!help" },
|
||||
user_default_options = {
|
||||
|
|
Loading…
Add table
Reference in a new issue