Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 37a7bda

Browse files
theme: add themes & load immediately to be selectable
`SPC f t` selector will choose from any theme that is loaded, including all variants that a theme defines Configure AstroNvim/astrotheme to load immediately, so that theme is available as a selection Add community themes set to lazy = false - "astrocommunity.colorscheme.everforest" - "astrocommunity.colorscheme.nightfox-nvim" - "astrocommunity.colorscheme.kanagawa-nvim" - "astrocommunity.colorscheme.github-nvim-theme"
1 parent 5653554 commit 37a7bda

2 files changed

Lines changed: 37 additions & 5 deletions

File tree

plugins/community.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ return {
44
-- example of imporing a plugin, comment out to use it or add your own
55
-- available plugins can be found at https://github.com/AstroNvim/astrocommunity
66

7-
-- { import = "astrocommunity.colorscheme.catppuccin" },
8-
-- { import = "astrocommunity.completion.copilot-lua-cmp" },
97
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
108

119
{
@@ -37,7 +35,5 @@ return {
3735
{ import = "astrocommunity.project.project-nvim" }, -- very nice
3836

3937
-- Themes
40-
{ import = "astrocommunity.colorscheme.nightfox" }, -- very nice
41-
{ import = "astrocommunity.colorscheme.everforest" }, -- very nice
42-
{ import = "astrocommunity.colorscheme.kanagawa" }, -- very nice
38+
-- defined in themes.lua
4339
}

plugins/themes.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- Themes for AstroNvim
2+
-- aka colorscheme
3+
4+
-- `SPC f t` selector shows all themes and their variants
5+
-- Themes are configured to disable lazy loading so they are selectable
6+
-- default theme is defined in `init.lua` using the `colorscheme` option
7+
8+
return {
9+
{
10+
"AstroNvim/astrotheme", -- default AstroNvim theme
11+
lazy = false,
12+
},
13+
14+
-- Add the community repository of plugin specifications
15+
"AstroNvim/astrocommunity",
16+
{ import = "astrocommunity.colorscheme.everforest" },
17+
{
18+
"sainnhe/everforest",
19+
lazy = false,
20+
},
21+
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
22+
{
23+
"EdenEast/nightfox.nvim",
24+
lazy = false,
25+
},
26+
{ import = "astrocommunity.colorscheme.kanagawa-nvim" },
27+
{
28+
"rebelot/kanagawa.nvim",
29+
lazy = false,
30+
},
31+
{ import = "astrocommunity.colorscheme.github-nvim-theme" }, -- no background support
32+
{
33+
"projekt0n/github-nvim-theme",
34+
lazy = false,
35+
},
36+
}

0 commit comments

Comments
 (0)