fitur baru config color scheme

This commit is contained in:
asep komarudin 2023-03-04 11:53:44 +07:00
parent 06995762e0
commit 1a7a0a9ba0
10 changed files with 159 additions and 690 deletions

View file

@ -1,15 +1,19 @@
-- local colorscheme = "tokyonight"
-- local colorscheme = "gruvbox"
local colorscheme = "gruvbox-baby"
-- local colorscheme = "sonokai"
-- local colorscheme = "nordfox"
-- local colorscheme = "material"
-- local colorscheme = "onedark"
-- local colorscheme = "lunar"
-- local colorscheme = "nord"
-- local colorscheme = "catppuccin"
local data_exists, custom_ui = pcall(require, "custom.ui")
if data_exists then
if type(custom_ui) == "table" then
local color = custom_ui.colorscheme
if color ~= nil then
colorscheme = color
else
colorscheme = "gruvbox-baby"
end
end
end
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
return
local ok, _ = pcall(vim.cmd, "colorscheme " .. "gruvbox-baby")
if not ok then
return
end
end