colortheme: change set method

we install 2 themes in themes.lua,
and then set colorscheme in init.lua
This commit is contained in:
2023-04-26 15:33:25 +08:00
parent 91aa6f61d5
commit a4e4c78012
2 changed files with 16 additions and 9 deletions
+2
View File
@@ -2,3 +2,5 @@ require("configs.options")
require("configs.keymaps") require("configs.keymaps")
require("configs.autocmds") require("configs.autocmds")
require("configs.lazy") require("configs.lazy")
vim.cmd.colorscheme("catppuccin")
+14 -9
View File
@@ -1,9 +1,14 @@
return {{ return {
"folke/tokyonight.nvim", -- tokyonight
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 "folke/tokyonight.nvim",
config = function() lazy = true,
-- load the colorscheme here opts = { style = "moon" },
vim.cmd([[colorscheme tokyonight]]) },
end -- catppuccin
}} {
"catppuccin/nvim",
lazy = true,
name = "catppuccin",
},
}