From 11e0a7408eb42f00bf516e8a2a480c51c7061a85 Mon Sep 17 00:00:00 2001 From: Samuel ONeal Date: Tue, 13 Jan 2026 11:35:48 -0700 Subject: [PATCH] added colorizer --- lua/plugins/editor.lua | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index ab5925a..6038ca4 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -39,12 +39,12 @@ return { }, keys = { -- Ctrl+Shift+e - Toggle explorer - { "", function() Snacks.explorer() end, desc = "Toggle Explorer" }, + { "", function() Snacks.explorer() end, desc = "Toggle Explorer" }, -- Alternative binding if terminal doesn't handle Ctrl+Shift - { "fe", function() Snacks.explorer() end, desc = "File Explorer" }, + { "fe", function() Snacks.explorer() end, desc = "File Explorer" }, -- Lazygit - { "gg", function() Snacks.lazygit() end, desc = "Lazygit" }, - { "gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" }, + { "gg", function() Snacks.lazygit() end, desc = "Lazygit" }, + { "gl", function() Snacks.lazygit.log() end, desc = "Lazygit Log" }, { "gf", function() Snacks.lazygit.log_file() end, desc = "Lazygit File History" }, }, }, @@ -62,6 +62,30 @@ return { }, }, + -- Color preview for CSS, HTML, etc. + { + "norcalli/nvim-colorizer.lua", + event = { "BufReadPre", "BufNewFile" }, + opts = { + "css", + "scss", + "html", + "javascript", + "typescript", + "javascriptreact", + "typescriptreact", + "vue", + "svelte", + "lua", + "yaml", + "toml", + "conf", + css = { rgb_fn = true, hsl_fn = true }, + scss = { rgb_fn = true, hsl_fn = true }, + html = { names = false }, + }, + }, + -- Better terminal integration { "akinsho/toggleterm.nvim",