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.autocmds")
|
||||
require("configs.lazy")
|
||||
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
|
||||
+13
-8
@@ -1,9 +1,14 @@
|
||||
return {{
|
||||
return {
|
||||
-- tokyonight
|
||||
{
|
||||
"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
|
||||
}}
|
||||
lazy = true,
|
||||
opts = { style = "moon" },
|
||||
},
|
||||
-- catppuccin
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
lazy = true,
|
||||
name = "catppuccin",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user