-- Applies the hand-kept wallpaper palette (lua/matugen.lua) on top of LazyVim's -- colorscheme instead of living with tokyonight defaults. -- -- base16-colorscheme writes highlights directly and never touches v:colors_name, -- so LazyVim keeps thinking tokyonight is loaded and its plugin-specific tweaks -- still run; ours is the last word on the UI groups. return { "RRethy/base16-nvim", lazy = false, priority = 900, config = function() -- LazyVim loads its colorscheme after plugin configs, so re-apply on every -- ColorScheme event: that also makes `:colorscheme foo` land on our palette. vim.api.nvim_create_autocmd("ColorScheme", { desc = "Re-apply the matugen base16 palette after any colorscheme", callback = function() require("matugen").setup() end, }) require("matugen").setup() end, }