Skip to content

Commit c8af756

Browse files
AnjanJclaude
andcommitted
Fix Neovim aura-dark colorscheme load order
Use init instead of config for rtp:append so the monorepo theme path is available before AstroUI sets the colorscheme. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 329f5ec commit c8af756

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.config/nvim/lua/plugins/astroui.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ return {
88
"AstroNvim/astroui",
99
---@type AstroUIOpts
1010
opts = {
11-
-- Tokyo Night theme (excellent statusline support)
1211
colorscheme = "aura-dark",
1312
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
1413
highlights = {
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
-- Aura Dark theme
22
-- Repository: https://github.com/daltonmenezes/aura-theme
3+
-- Note: This is a monorepo — neovim theme lives under packages/neovim
34
return {
45
"baliestri/aura-theme",
56
lazy = false,
67
priority = 1000,
7-
config = function(plugin)
8+
init = function(plugin)
9+
-- Must add to rtp before AstroUI tries to set the colorscheme
810
vim.opt.rtp:append(plugin.dir .. "/packages/neovim")
9-
vim.cmd("colorscheme aura-dark")
1011
end,
1112
}

themes/aura/nvim/aura-theme.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
-- Aura Dark theme
22
-- Repository: https://github.com/daltonmenezes/aura-theme
3+
-- Note: This is a monorepo — neovim theme lives under packages/neovim
34
return {
45
"baliestri/aura-theme",
56
lazy = false,
67
priority = 1000,
7-
config = function(plugin)
8+
init = function(plugin)
9+
-- Must add to rtp before AstroUI tries to set the colorscheme
810
vim.opt.rtp:append(plugin.dir .. "/packages/neovim")
9-
vim.cmd("colorscheme aura-dark")
1011
end,
1112
}

0 commit comments

Comments
 (0)