From ce43f554fc56b5ef63e7dabde740307f4a778af0 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 26 Jan 2025 16:40:12 -0800 Subject: [PATCH] tokyo night refactor --- lua/plugins/init.lua | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 4a59794..fee8d09 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,34 +1,27 @@ return { { "folke/neoconf.nvim", cmd = "Neoconf" }, - { - "folke/tokyonight.nvim", - lazy = false, -- make sure we load this during startup if it is your main colorscheme - priority = 1000, -- make sure to load this before all the other start plugins - opts = { - style = "night", - transparent = true, - terminal_colors = true, - on_colors = function(colors) - colors.bg = "#000000" - end, - config = function(_, opts) - local tokyonight = require("tokyonight") - tokyonight.setup(opts) - tokyonight.load() - vim.g.tokyonight_style = "night" - vim.g.tokyonight_italic_functions = true - vim.o.termguicolors = true - -- load the colorscheme here - vim.cmd([[colorscheme tokyonight-night]]) - end, - }, - }, { "folke/neodev.nvim", config = function() require("neodev").setup() end, }, + { + "folke/tokyonight.nvim", + lazy = false, -- make sure we load this during startup if it is your main colorscheme + priority = 1000, -- make sure to load this before all the other start plugins + config = function() + require("tokyonight").setup({ + style = "night", + on_colors = function(colors) + colors.bg = "#000000" -- "#1a1b26" + end, + }) + vim.o.termguicolors = true + -- load the colorscheme here + vim.cmd([[colorscheme tokyonight-night]]) + end, + }, { "folke/trouble.nvim", config = function()