From 966c05f4fb537efab146101b1eec726b09559dda Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 2 Dec 2023 23:53:11 +0100 Subject: [PATCH] using lua function to define the colorscheme --- nvim/lua/settings/lazy/plugins/tokyonight.lua | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/nvim/lua/settings/lazy/plugins/tokyonight.lua b/nvim/lua/settings/lazy/plugins/tokyonight.lua index b10142d..ab478b3 100644 --- a/nvim/lua/settings/lazy/plugins/tokyonight.lua +++ b/nvim/lua/settings/lazy/plugins/tokyonight.lua @@ -1,14 +1,16 @@ return { - "folke/tokyonight.nvim", - lazy = false, - priority = 1000, - init = function() - vim.cmd([[colorscheme tokyonight]]) - end, - opts = { - style = "storm", - light_style = "day", - transparent = false, - terminal_colors = true, + { + "folke/tokyonight.nvim", + lazy = false, + priority = 1000, + init = function() + vim.cmd.colorscheme("tokyonight") + end, + opts = { + style = "storm", + transparent = false, + light_style = "day", + terminal_colors = true, + }, }, }