From 3c48ad912b1652f4ef2af0ef3332a2c481bd2a22 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 4 Apr 2026 14:32:34 +0200 Subject: [PATCH] nvim/lua/user/plugins/ui/editor.lua: switch from nvim-highlight-colors to nvim-colorizer --- nvim/lua/user/plugins/ui/editor.lua | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/nvim/lua/user/plugins/ui/editor.lua b/nvim/lua/user/plugins/ui/editor.lua index ab371c9..b717066 100644 --- a/nvim/lua/user/plugins/ui/editor.lua +++ b/nvim/lua/user/plugins/ui/editor.lua @@ -51,12 +51,24 @@ return { }, -- color highlight in documents { - 'brenoprata10/nvim-highlight-colors', + "catgoose/nvim-colorizer.lua", + event = "BufReadPre", opts = { - render = 'virtual', - virtual_symbol_position = 'eol', - virtual_symbol_prefix = '', - virtual_symbol_suffix = '', - } - }, + options = { + parsers = { + hex = { enable = true }, + rgb = { enable = true }, + hsl = { enable = true }, + oklch = { enable = true }, + xterm = { enable = true }, + tailwind = { + lsp = true, + }, + }, + display = { + mode = "virtualtext", + }, + } + }, + } }