return { { -- Package installer (for LSPs) "williamboman/mason.nvim", opts = {} }, { -- Highlight color codes (like #A3F041) "norcalli/nvim-colorizer.lua", -- event = { "BufNew" }, -- will not call autocmd when opening a file the first time config = function() require("colorizer").setup({'*'}, { RRGGBBAA = true }) -- trigger highlighting when opening a new buffer vim.api.nvim_create_autocmd( { "BufNew", "BufRead" }, { callback = function() local colorizer = require("colorizer") local options = nil if colorizer.is_buffer_attached(0) then options = colorizer.get_buffer_options(0) end colorizer.attach_to_buffer(0, options) end }) end, } }