From 86fb9d58284145d11c34fe898b50f3723b24711b Mon Sep 17 00:00:00 2001 From: km Date: Tue, 19 Nov 2024 23:32:16 +0000 Subject: [PATCH] break out colorschemes to a separate file --- init.lua | 31 ------------------------------ lua/custom/plugins/colorscheme.lua | 26 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 31 deletions(-) create mode 100644 lua/custom/plugins/colorscheme.lua diff --git a/init.lua b/init.lua index fc1bb2b6..dc125a01 100644 --- a/init.lua +++ b/init.lua @@ -805,37 +805,6 @@ require('lazy').setup({ end, }, - -- - -- COLORSCHEMES - -- - { -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', - priority = 1000, -- Make sure to load this before all the other start plugins. - init = function() - vim.cmd.hi 'Comment gui=none' - end, - }, - { 'zenbones-theme/zenbones.nvim', dependencies = 'rktjmp/lush.nvim', lazy = false, priority = 1000 }, - { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 }, - { - 'navarasu/onedark.nvim', - name = 'onedark', - priority = 1000, - init = function() - vim.cmd.colorscheme 'onedark' - end, - }, - { 'scottmckendry/cyberdream.nvim', lazy = false, priority = 1000 }, - { - 'yorik1984/newpaper.nvim', - priority = 1000, - config = function() - vim.g.newpaper_style = 'light' - end, - }, - { 'rebelot/kanagawa.nvim', priority = 1000 }, - { 'EdenEast/nightfox.nvim', priority = 1000 }, - -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, diff --git a/lua/custom/plugins/colorscheme.lua b/lua/custom/plugins/colorscheme.lua new file mode 100644 index 00000000..f00950cf --- /dev/null +++ b/lua/custom/plugins/colorscheme.lua @@ -0,0 +1,26 @@ +return { + -- + -- COLORSCHEMES + -- + { -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. + 'folke/tokyonight.nvim', + priority = 1000, -- Make sure to load this before all the other start plugins. + init = function() + vim.cmd.hi 'Comment gui=none' + end, + }, + { + 'navarasu/onedark.nvim', + name = 'onedark', + priority = 1000, + init = function() + vim.cmd.colorscheme 'onedark' + end, + }, + { 'zenbones-theme/zenbones.nvim', dependencies = 'rktjmp/lush.nvim', lazy = false, priority = 1000 }, + { 'yorik1984/newpaper.nvim', priority = 1000 }, + { 'catppuccin/nvim', name = 'catppuccin', priority = 1000 }, + { 'scottmckendry/cyberdream.nvim', lazy = false, priority = 1000 }, + { 'rebelot/kanagawa.nvim', priority = 1000 }, + { 'EdenEast/nightfox.nvim', priority = 1000 }, +}