Added new user event for loading themes with lazy
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
local M = {}
|
||||
|
||||
function M.themeselector()
|
||||
vim.api.nvim_exec_autocmds("User", { pattern = "ThemeSwitcher", modeline = false })
|
||||
|
||||
local configDir = vim.fn.stdpath("config")
|
||||
local prefsFile = configDir .. "/lua/taken/prefs.lua"
|
||||
local oldstring = 'M.colorscheme = .*"'
|
||||
|
||||
@@ -3,6 +3,7 @@ return {
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
config = function()
|
||||
local rose_pine = require("rose-pine")
|
||||
rose_pine.setup({
|
||||
@@ -15,11 +16,13 @@ return {
|
||||
"bluz71/vim-nightfly-colors",
|
||||
name = "nightfly",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
config = function()
|
||||
local catppuccin = require("catppuccin")
|
||||
catppuccin.setup({
|
||||
@@ -30,38 +33,47 @@ return {
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"Mofiqul/dracula.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"roflolilolmao/oceanic-next.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"olimorris/onedarkpro.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"NTBBloodbath/doom-one.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"shaunsingh/moonlight.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"kvrohit/mellow.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
{
|
||||
"ofirgall/ofirkai.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
config = true,
|
||||
},
|
||||
{
|
||||
"rebelot/kanagawa.nvim",
|
||||
priority = 1000,
|
||||
event = "User ThemeSwitcher",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user