perf(tokyonight): use tokyonight api to load colorscheme on startup
This commit is contained in:
1 file changed
+6
-2
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user