fix(theming): restore gruvbox as default via Default() helper

This commit is contained in:
MDietermann
2026-04-14 13:42:58 +02:00
parent 4f7411ca95
commit 698271a235
6 changed files with 28 additions and 14 deletions

View File

@@ -85,13 +85,10 @@ func nvimCfg() (string, error) {
}
func (m Module) resolvedTheme() string {
if t, ok := theming.Get(m.themeID); ok && t.NvChadTheme != "" {
if t, ok := theming.Get(m.themeID); ok {
return t.NvChadTheme
}
if list := theming.List(); len(list) > 0 && list[0].NvChadTheme != "" {
return list[0].NvChadTheme
}
return "gruvbox"
return theming.Default().NvChadTheme
}
// WriteChadrc renders chadrc.lua for the given NvChad theme name and writes