pojokcodeid.nvim-lazy/lua/user/colorscheme.lua

13 lines
387 B
Lua
Raw Normal View History

2024-06-14 08:21:36 +07:00
local colorscheme = pcode.colorscheme or "gruvbox-baby"
2023-03-05 10:49:03 +07:00
2024-05-24 23:43:38 +07:00
if substring(tostring(colorscheme), "sonokai") then
colorscheme = "sonokai"
elseif substring(tostring(colorscheme), "material") then
colorscheme = "material"
2023-03-05 10:49:03 +07:00
end
2024-05-21 14:20:50 +07:00
2024-06-12 18:38:25 +07:00
local ok, _ = pcall(vim.cmd.colorscheme, colorscheme)
if not ok then
require "notify"("Colorscheme '" .. colorscheme .. "' not found!", "error")
end