Added new user event for loading themes with lazy

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-18 17:29:15 +02:00
parent c4fb8d2450
commit 26139670ff
2 changed files with 14 additions and 0 deletions

View File

@@ -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 = .*"'