Added my own colorsheme select function

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-15 16:55:24 +02:00
parent d4dc08a03b
commit 78c9ff3ce5
2 changed files with 47 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
local M = {}
function M.themeselector()
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