1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update colorscheme (#390)

1. Remove catppuccin, it is too purple/blue for me
2. use another nightfox variant
This commit is contained in:
jdhao 2025-03-30 18:02:28 +02:00 committed by GitHub
parent 0816faee76
commit b82c1c112f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,14 +44,7 @@ M.colorscheme_conf = {
vim.cmd([[colorscheme everforest]])
end,
nightfox = function()
vim.cmd([[colorscheme nordfox]])
end,
catppuccin = function()
-- available option: latte, frappe, macchiato, mocha
vim.g.catppuccin_flavour = "frappe"
require("catppuccin").setup()
vim.cmd([[colorscheme catppuccin]])
vim.cmd([[colorscheme carbonfox]])
end,
onedarkpro = function()
-- set colorscheme after options
@ -73,14 +66,6 @@ M.colorscheme_conf = {
--- Use a random colorscheme from the pre-defined list of colorschemes.
M.rand_colorscheme = function()
local colorscheme = utils.rand_element(vim.tbl_keys(M.colorscheme_conf))
colorscheme = "gruvbox_material"
if not vim.tbl_contains(vim.tbl_keys(M.colorscheme_conf), colorscheme) then
local msg = "Invalid colorscheme: " .. colorscheme
vim.notify(msg, vim.log.levels.ERROR, { title = "nvim-config" })
return
end
-- Load the colorscheme and its settings
M.colorscheme_conf[colorscheme]()
@ -92,5 +77,4 @@ M.rand_colorscheme = function()
end
end
-- Load a random colorscheme
M.rand_colorscheme()
return M