perf(tokyonight): use tokyonight api to load colorscheme on startup

This commit is contained in:
Folke Lemaitre 2022-12-30 23:34:45 +01:00
parent 0266bb851d
commit 75d8aff979
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1,14 +1,18 @@
return { return {
-- tokyonight
{ {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
lazy = false, lazy = false,
priority = 1000, priority = 1000,
config = function() config = function()
require("tokyonight").setup({ style = "moon" }) local tokyonight = require("tokyonight")
vim.cmd.colorscheme("tokyonight") tokyonight.setup({ style = "moon" })
tokyonight.load()
end, end,
}, },
-- catppuccin
{ {
"catppuccin/nvim", "catppuccin/nvim",
name = "catppuccin", name = "catppuccin",