From 228cd34087e3e1a4f64c21736f80608c0aba8f77 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 13 Apr 2024 18:11:09 +0200 Subject: [PATCH] Only colorize hex codes --- nvim/dot-config/nvim/lua/plugins/colorizer.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nvim/dot-config/nvim/lua/plugins/colorizer.lua b/nvim/dot-config/nvim/lua/plugins/colorizer.lua index b34f032..761a9a3 100644 --- a/nvim/dot-config/nvim/lua/plugins/colorizer.lua +++ b/nvim/dot-config/nvim/lua/plugins/colorizer.lua @@ -1,11 +1,11 @@ -- https://github.com/NvChad/nvim-colorizer.lua return { - 'NvChad/nvim-colorizer.lua', + "NvChad/nvim-colorizer.lua", event = "VeryLazy", opts = { filetypes = { - '*', -- Enable color highlighting for all files - '!neo-tree', -- Exclude neo-tree + "*", -- Enable color highlighting for all files + "!neo-tree", -- Exclude neo-tree }, buftypes = { "*", @@ -13,10 +13,13 @@ return { "!popup", }, always_update = true, + user_default_options = { + names = false, + }, }, -- Fix lazy loading: https://github.com/NvChad/nvim-colorizer.lua config = function(_, opts) - local colorizer = require('colorizer'); + local colorizer = require("colorizer") colorizer.setup(opts) -- nvim-colorizer doesn't work on the initial buffer if we lazy load, so force it to attach @@ -25,5 +28,5 @@ return { if bufnr and not colorizer.is_buffer_attached(bufnr) then colorizer.attach_to_buffer(bufnr) end - end + end, }