From 853b3237733ee84a5b4b18428fb9c8e56939b87c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 18 Oct 2023 12:03:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20new=20color=20picker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/ccc.lua | 18 ++++++++++++++++++ .config/nvim/lua/plugins/color-picker.lua | 17 ----------------- .config/nvim/lua/plugins/colorizer.lua | 1 + 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 .config/nvim/lua/plugins/ccc.lua delete mode 100644 .config/nvim/lua/plugins/color-picker.lua diff --git a/.config/nvim/lua/plugins/ccc.lua b/.config/nvim/lua/plugins/ccc.lua new file mode 100644 index 00000000..a1d76a3e --- /dev/null +++ b/.config/nvim/lua/plugins/ccc.lua @@ -0,0 +1,18 @@ +return { + { + "uga-rosa/ccc.nvim", + event = { "BufRead" }, + cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" }, + keys = { + { "uC", "CccHighlighterToggle", desc = "Toggle Colorizer" }, + { "", "CccConvert", desc = "Convert color" }, + { "", "CccPick", desc = "Pick Color" }, + }, + opts = { + highlighter = { + auto_enable = true, + lsp = true, + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/color-picker.lua b/.config/nvim/lua/plugins/color-picker.lua deleted file mode 100644 index 1193078b..00000000 --- a/.config/nvim/lua/plugins/color-picker.lua +++ /dev/null @@ -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"] = "ColorPickerSlider5Decrease", - ["O"] = "ColorPickerSlider5Increase", - }, - ["background_highlight_group"] = "Normal", -- default - ["border_highlight_group"] = "FloatBorder", -- default - ["text_highlight_group"] = "Normal", --default - }, - }, -} diff --git a/.config/nvim/lua/plugins/colorizer.lua b/.config/nvim/lua/plugins/colorizer.lua index 5e327f43..68fdedee 100644 --- a/.config/nvim/lua/plugins/colorizer.lua +++ b/.config/nvim/lua/plugins/colorizer.lua @@ -2,6 +2,7 @@ return { { "NvChad/nvim-colorizer.lua", event = { "BufReadPre", "BufNewFile" }, + enabled = false, opts = { filetypes = { "*", "!help" }, user_default_options = {