From 7e5a875405b277693153a22a190793359de5b659 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Thu, 1 May 2025 19:44:43 +0800 Subject: [PATCH] feat nvim: add editor color --- .../exact_plugins/exact_editor/color.lua | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dot_config/nvim/exact_lua/exact_plugins/exact_editor/color.lua diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_editor/color.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_editor/color.lua new file mode 100644 index 0000000..40dccdf --- /dev/null +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_editor/color.lua @@ -0,0 +1,26 @@ +return { + 'norcalli/nvim-colorizer.lua', + lazy = false, + config = function() + -- Attaches to every FileType mode + require 'colorizer'.setup() + + -- require("colorizer").setup({ + -- '*'; -- Highlight all files, but customize some others. + -- '!vim'; -- Exclude vim from highlighting. + -- '!markdown'; -- Exclude markdown from highlighting. + -- '!text'; -- Exclude text from highlighting. + -- '!html'; -- Exclude html from highlighting. + -- '!css'; -- Exclude css from highlighting. + -- '!javascript'; -- Exclude javascript from highlighting. + -- '!typescript'; -- Exclude typescript from highlighting. + -- }, { + -- RGB = true; -- #RGB hex codes + -- RRGGBB = true; -- #RRGGBB hex codes + -- names = false; -- "Name" codes like Blue or blue + -- RRGGBBAA = true; -- #RRGGBBAA hex codes + -- rgb_fn = true; -- CSS rgb() and rgba() functions + -- hsl_fn = true; -- CSS hsl() and hsla() functions + -- }) + end, +}