2024-02-13 21:19:26 -03:00
|
|
|
local home = os.getenv("HOME")
|
2024-01-16 12:52:36 -03:00
|
|
|
local colorscheme = {}
|
2024-02-13 21:19:26 -03:00
|
|
|
local open = io.open
|
|
|
|
|
|
|
|
local function read_file(path)
|
|
|
|
local file = open(path, "rb")
|
|
|
|
if not file then return nil end
|
|
|
|
local content = file:read "*l"
|
|
|
|
file:close()
|
|
|
|
return content
|
|
|
|
end
|
|
|
|
|
|
|
|
local fileContent = read_file(string.format("%s/colorscheme", home));
|
|
|
|
|
|
|
|
if fileContent == "white" then
|
2024-01-16 12:52:36 -03:00
|
|
|
colorscheme = {
|
2024-11-16 12:25:02 -03:00
|
|
|
'marko-cerovac/material.nvim',
|
2024-01-16 12:52:36 -03:00
|
|
|
lazy = false,
|
|
|
|
priority = 1000,
|
|
|
|
config = function()
|
|
|
|
vim.o.background = 'light'
|
|
|
|
vim.opt.termguicolors = true
|
2024-11-16 12:25:02 -03:00
|
|
|
vim.g.material_style = 'lighter'
|
|
|
|
require('material').setup({})
|
|
|
|
vim.cmd.colorscheme 'material'
|
|
|
|
-- vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#435156]]
|
2024-01-16 12:52:36 -03:00
|
|
|
end,
|
|
|
|
}
|
2024-02-13 21:19:26 -03:00
|
|
|
elseif fileContent == "red" then
|
|
|
|
colorscheme = {
|
|
|
|
"water-sucks/darkrose.nvim",
|
|
|
|
lazy = false,
|
|
|
|
dependencies = { "tjdevries/colorbuddy.vim" },
|
|
|
|
priority = 1000,
|
|
|
|
config = function()
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.cmd.colorscheme("darkrose")
|
|
|
|
vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
|
|
|
local Color, colors, Group, groups, styles = require('colorbuddy').setup()
|
|
|
|
|
|
|
|
Color.new("red", "#9E4244")
|
|
|
|
Color.new("dark_red", "#6D0011")
|
|
|
|
Color.new("light_red", "#F85149")
|
|
|
|
Color.new("orange", "#A26B35")
|
|
|
|
Color.new("light_orange", "#F0883E")
|
|
|
|
Color.new("dark_purple", "#281C2B")
|
|
|
|
Color.new("magenta", "#8B2950")
|
|
|
|
Color.new("dark_pink", "#B76E79")
|
|
|
|
Color.new("pink", "#FF7979")
|
|
|
|
Color.new("light_pink", "#F6ACA7")
|
|
|
|
Color.new("gray", "#8B8B8B")
|
|
|
|
Color.new("bg", "#000000")
|
|
|
|
Color.new("bg_float", "#101010")
|
|
|
|
Color.new("bg_float_bright", "#121212")
|
|
|
|
Color.new("fg", "#C9C1C9")
|
|
|
|
Color.new("fg_gutter", "#8A95A2")
|
|
|
|
Color.new("fg_dark", "#4D5566")
|
|
|
|
|
|
|
|
|
|
|
|
Group.new("@neorg.links.file", colors.magenta, colors.none, styles.bold)
|
|
|
|
Group.new("@comment", colors.gray, colors.none, styles.italic)
|
|
|
|
end
|
|
|
|
}
|
2024-02-14 08:51:49 -03:00
|
|
|
elseif fileContent == "melange" then
|
|
|
|
colorscheme = {
|
|
|
|
"savq/melange-nvim",
|
|
|
|
lazy = false,
|
|
|
|
dependencies = { "tjdevries/colorbuddy.vim" },
|
|
|
|
priority = 1000,
|
|
|
|
config = function()
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.o.background = 'light'
|
|
|
|
vim.cmd.colorscheme 'melange'
|
|
|
|
end,
|
|
|
|
|
|
|
|
}
|
2024-03-28 16:37:15 -03:00
|
|
|
elseif fileContent == "monochrome" then
|
|
|
|
colorscheme = {
|
|
|
|
'jesseleite/nvim-noirbuddy',
|
|
|
|
dependencies = {
|
|
|
|
{ 'tjdevries/colorbuddy.nvim' }
|
|
|
|
},
|
|
|
|
lazy = false,
|
|
|
|
priority = 1000,
|
|
|
|
opts = {
|
|
|
|
colors = {
|
2024-04-09 14:29:57 -03:00
|
|
|
secondary = "#CCB901",
|
|
|
|
primary = "#ccc04c"
|
2024-03-28 16:37:15 -03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
2024-05-14 09:27:59 -03:00
|
|
|
elseif fileContent == "forest" then
|
|
|
|
colorscheme = {
|
|
|
|
"neanias/everforest-nvim",
|
|
|
|
version = false,
|
|
|
|
lazy = false,
|
|
|
|
priority = 1000, -- make sure to load this before all the other start plugins
|
|
|
|
-- Optional; default configuration will be used if setup isn't called.
|
|
|
|
config = function()
|
|
|
|
vim.o.termguicolors = true
|
|
|
|
require("everforest").setup({
|
|
|
|
background = "hard",
|
|
|
|
italics = true,
|
|
|
|
ui_contrast = "high",
|
|
|
|
dim_inactive_windows = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.cmd.colorscheme("everforest")
|
|
|
|
end,
|
|
|
|
}
|
2024-03-04 15:40:32 -03:00
|
|
|
elseif fileContent == "solarized" then
|
|
|
|
colorscheme = {
|
|
|
|
'maxmx03/solarized.nvim',
|
|
|
|
lazy = false,
|
|
|
|
priority = 1000,
|
2024-08-30 00:25:01 -03:00
|
|
|
---@type solarized.config
|
|
|
|
opts = {
|
|
|
|
palette = 'solarized',
|
|
|
|
styles = {
|
|
|
|
comments = { italic = true, bold = false }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function(_, opts)
|
2024-07-15 10:10:54 -03:00
|
|
|
vim.o.termguicolors = true
|
2024-08-30 00:25:01 -03:00
|
|
|
require('solarized').setup(opts)
|
2024-10-08 17:03:10 -03:00
|
|
|
vim.o.background = 'dark'
|
2024-03-04 15:40:32 -03:00
|
|
|
vim.cmd.colorscheme 'solarized'
|
|
|
|
end,
|
|
|
|
}
|
2024-02-13 21:19:26 -03:00
|
|
|
else
|
2024-02-10 10:28:07 -03:00
|
|
|
colorscheme = {
|
2024-11-26 08:55:30 -03:00
|
|
|
'marko-cerovac/material.nvim',
|
2024-02-10 10:28:07 -03:00
|
|
|
lazy = false,
|
|
|
|
priority = 1000,
|
|
|
|
config = function()
|
2024-11-26 08:55:30 -03:00
|
|
|
vim.o.background = 'dark'
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
vim.g.material_style = 'darker'
|
|
|
|
require('material').setup({})
|
|
|
|
vim.cmd.colorscheme 'material'
|
|
|
|
end,
|
2024-01-16 12:52:36 -03:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return colorscheme
|