colortheme: change set method
we install 2 themes in themes.lua, and then set colorscheme in init.lua
This commit is contained in:
@@ -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
@@ -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",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user