Add more colorscheme and ability to switch

This commit is contained in:
2026-01-14 21:45:20 +01:00
parent 77050a542f
commit cf1e2e38ed
6 changed files with 82 additions and 28 deletions

21
lua/utils/colorscheme.lua Normal file
View File

@ -0,0 +1,21 @@
local M = {}
-- List of installed colorschemes
M.themes = { "tokyonight", "catppuccin", "gruvbox" }
-- Picker function
function M.pick()
vim.ui.select(M.themes, {
prompt = "Choose Colorscheme:",
}, function(choice)
if choice then
-- Load lazy plugin if needed
pcall(require, choice)
-- Apply the colorscheme
vim.cmd.colorscheme(choice)
end
end)
end
return M