chad nvim theme overlay lol

This commit is contained in:
Harivansh Rathi 2025-12-29 01:01:05 +05:30
parent efe8d19d7a
commit 2c1131fe8e
6 changed files with 119 additions and 59 deletions

35
lua/plugins/nvchad.lua Normal file
View file

@ -0,0 +1,35 @@
return {
"nvim-lua/plenary.nvim",
{
"nvchad/base46",
lazy = false,
priority = 1000,
build = function()
require("base46").load_all_highlights()
end,
config = function()
-- Generate cache on first load if it doesn't exist
local cache_path = vim.g.base46_cache
if not vim.uv.fs_stat(cache_path) then
vim.fn.mkdir(cache_path, "p")
require("base46").load_all_highlights()
end
end,
},
{
"nvchad/ui",
lazy = false,
priority = 999,
config = function()
require("nvchad")
end,
},
-- Optional: theme switcher UI (use :lua require('nvchad.themes').open())
{
"nvchad/volt",
lazy = true,
},
}