Skip to content

Commit 5ef5842

Browse files
Extract theme to custom plugins
1 parent 80cdd75 commit 5ef5842

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

init.lua

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -803,24 +803,6 @@ require('lazy').setup({
803803
end,
804804
},
805805

806-
{ -- You can easily change to a different colorscheme.
807-
-- Change the name of the colorscheme plugin below, and then
808-
-- change the command in the config to whatever the name of that colorscheme is.
809-
--
810-
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
811-
'folke/tokyonight.nvim',
812-
priority = 1000, -- Make sure to load this before all the other start plugins.
813-
init = function()
814-
-- Load the colorscheme here.
815-
-- Like many other themes, this one has different styles, and you could load
816-
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
817-
vim.cmd.colorscheme 'tokyonight-night'
818-
819-
-- You can configure highlights by doing something like:
820-
vim.cmd.hi 'Comment gui=none'
821-
end,
822-
},
823-
824806
-- Highlight todo, notes, etc in comments
825807
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
826808

lua/custom/plugins/theme.lua

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
return {
2+
{ -- You can easily change to a different colorscheme.
3+
-- Change the name of the colorscheme plugin below, and then
4+
-- change the command in the config to whatever the name of that colorscheme is.
5+
--
6+
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
7+
'catppuccin/nvim',
8+
priority = 1000, -- Make sure to load this before all the other start plugins.
9+
init = function()
10+
-- Load the colorscheme here.
11+
-- Like many other themes, this one has different styles, and you could load
12+
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
13+
vim.cmd.colorscheme 'catppuccin'
14+
15+
-- You can configure highlights by doing something like:
16+
vim.cmd.hi 'Comment gui=none'
17+
end,
18+
},
19+
}

0 commit comments

Comments
 (0)