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.autocmds")
require("configs.lazy")
vim.cmd.colorscheme("catppuccin")
+14 -9
View File
@@ -1,9 +1,14 @@
return {{
"folke/tokyonight.nvim",
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
config = function()
-- load the colorscheme here
vim.cmd([[colorscheme tokyonight]])
end
}}
return {
-- tokyonight
{
"folke/tokyonight.nvim",
lazy = true,
opts = { style = "moon" },
},
-- catppuccin
{
"catppuccin/nvim",
lazy = true,
name = "catppuccin",
},
}