From 75d8aff9799bd7f7fb390419fa1a5eb20d7cc2fd Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 30 Dec 2022 23:34:45 +0100 Subject: [PATCH] perf(tokyonight): use tokyonight api to load colorscheme on startup --- lua/user/plugins/colorscheme.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/user/plugins/colorscheme.lua b/lua/user/plugins/colorscheme.lua index 1dc86488..918085a5 100644 --- a/lua/user/plugins/colorscheme.lua +++ b/lua/user/plugins/colorscheme.lua @@ -1,14 +1,18 @@ return { + + -- tokyonight { "folke/tokyonight.nvim", lazy = false, priority = 1000, config = function() - require("tokyonight").setup({ style = "moon" }) - vim.cmd.colorscheme("tokyonight") + local tokyonight = require("tokyonight") + tokyonight.setup({ style = "moon" }) + tokyonight.load() end, }, + -- catppuccin { "catppuccin/nvim", name = "catppuccin",