mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-09 17:04:27 +02:00
fitur baru config color scheme
This commit is contained in:
parent
06995762e0
commit
1a7a0a9ba0
10 changed files with 159 additions and 690 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue