Updated themeselector function
This commit is contained in:
45
lua/taken/functions/themes.lua
Normal file
45
lua/taken/functions/themes.lua
Normal file
@@ -0,0 +1,45 @@
|
||||
local M = {}
|
||||
|
||||
function M.themeselector()
|
||||
local configDir = vim.fn.stdpath("config")
|
||||
local prefsFile = configDir .. "/lua/taken/prefs.lua"
|
||||
|
||||
local themes = {
|
||||
"rose-pine-main",
|
||||
"rose-pine-moon",
|
||||
"rose-pine-dawn",
|
||||
"catppuccin-mocha",
|
||||
"catppuccin-latte",
|
||||
"nightfly",
|
||||
"tokyonight-night",
|
||||
"tokyonight-storm",
|
||||
"tokyonight-moon",
|
||||
"tokyonight-day",
|
||||
"dracula",
|
||||
"dracula-soft",
|
||||
"OceanicNext",
|
||||
"onelight",
|
||||
"onedark",
|
||||
"onedark_dark",
|
||||
"onedark_vivid",
|
||||
"doom-one",
|
||||
"moonlight",
|
||||
"mellow",
|
||||
"ofirkai",
|
||||
"kanagawa-lotus",
|
||||
"kanagawa-dragon",
|
||||
"kanagawa-wave",
|
||||
}
|
||||
|
||||
local opts = {
|
||||
prompt = "Select a theme",
|
||||
}
|
||||
|
||||
local exec = function(choice)
|
||||
vim.cmd("colorscheme " .. choice)
|
||||
end
|
||||
|
||||
vim.ui.select(themes, opts, exec)
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user