dots-of-war/eggs/nvim/lua/dots/plugins/gruvbox8.lua

112 lines
6.8 KiB
Lua
Raw Permalink Normal View History

-- [nfnl] Compiled from fnl/dots/plugins/gruvbox8.fnl by https://github.com/Olical/nfnl, do not edit.
local _local_1_ = require("nfnl.module")
local autoload = _local_1_["autoload"]
local utils = autoload("dots.utils")
local colors = autoload("dots.colors")
local function setup()
vim.g.gruvbox_italics = 0
vim.g.gruvbox_italicise_strings = 0
vim.g.gruvbox_filetype_hi_groups = 1
vim.g.gruvbox_plugin_hi_groups = 1
local function setup_colors()
utils["highlight-add"]({"GruvboxBlueSign", "GruvboxAquaSign", "GruvboxRedSign", "GruvboxYellowSign", "GruvboxGreenSign", "GruvboxOrangeSign", "GruvboxPurpleSign"}, {bg = "NONE"})
utils.highlight("EndOfBuffer", {bg = "NONE", fg = colors.bg_main})
utils.highlight("LineNr", {bg = "NONE"})
utils["highlight-add"]("Pmenu", {bg = colors.bg_second})
utils["highlight-add"]("PmenuSel", {bg = colors.bright_aqua})
utils["highlight-add"]("PmenuSbar", {bg = colors.bg_second})
utils["highlight-add"]("PmenuThumb", {bg = colors.dark1})
utils["highlight-add"]("NormalFloat", {bg = colors.bg_second})
utils["highlight-add"]("SignColumn", {bg = colors.bg_main})
utils["highlight-add"]("FloatBorder", {bg = colors.bg_second})
utils["highlight-add"]("SpecialComment", {fg = colors.dark4})
utils["highlight-add"]({"LspDiagnosticsSignError", "LspDiagnosticsSignWarning", "LspDiagnosticsSignInformation", "LspDiagnosticsSignHint"}, {bg = "NONE"})
utils["highlight-add"]("DiagnosticError", {fg = colors.bright_red})
utils["highlight-add"]("DiagnosticWarning", {fg = colors.bright_orange})
utils["highlight-add"]("DiagnosticInformation", {fg = colors.bright_aqua})
utils["highlight-add"]("DiagnosticHint", {fg = colors.bright_yellow})
utils["highlight-add"]("DiagnosticVirtualTextError", {bg = "#342828", fg = colors.bright_red})
utils["highlight-add"]("DiagnosticVirtualTextWarning", {bg = "#473027", fg = colors.bright_orange})
utils["highlight-add"]("DiagnosticVirtualTextWarning", {bg = "#3b2c28", fg = colors.bright_orange})
utils["highlight-add"]("DiagnosticVirtualTextInformation", {bg = "#272d2f", fg = colors.bright_aqua})
utils["highlight-add"]("DiagnosticVirtualTextHint", {bg = "#272d2f", fg = colors.bright_yellow})
utils.highlight("LspDiagnosticsUnderlineError", {gui = "undercurl"})
utils.highlight("StatusLine", {bg = colors.dark1, fg = colors.light0})
vim.cmd("highlight link Function GruvboxGreen")
return utils["highlight-add"]("Function", {gui = "NONE"})
end
local function setup_telescope_theme()
local prompt = "blacker"
if (prompt == "bright") then
local promptbg = "#689d6a"
utils["highlight-add"]("TelescopePromptBorder", {bg = promptbg, fg = promptbg})
utils["highlight-add"]("TelescopePromptNormal", {bg = promptbg, fg = colors.bg_main})
utils["highlight-add"]("TelescopePromptTitle", {bg = promptbg, fg = colors.dark1})
elseif (prompt == "dark") then
local promptbg = "#252525"
utils["highlight-add"]("TelescopePromptBorder", {bg = promptbg, fg = promptbg})
utils["highlight-add"]("TelescopePromptNormal", {bg = promptbg, fg = colors.light2})
utils["highlight-add"]("TelescopePromptPrefix", {bg = promptbg, fg = colors.neutral_aqua})
utils["highlight-add"]("TelescopePromptTitle", {bg = colors.neutral_blue, fg = colors.dark1})
elseif (prompt == "black") then
local promptbg = "#212526"
utils["highlight-add"]("TelescopePromptBorder", {bg = promptbg, fg = promptbg})
utils["highlight-add"]("TelescopePromptNormal", {bg = promptbg, fg = colors.light2})
utils["highlight-add"]("TelescopePromptPrefix", {bg = promptbg, fg = colors.neutral_aqua})
utils["highlight-add"]("TelescopePromptTitle", {bg = colors.neutral_green, fg = colors.dark1})
elseif (prompt == "blacker") then
local promptbg = "#1f2324"
utils["highlight-add"]("TelescopePromptBorder", {bg = promptbg, fg = promptbg})
utils["highlight-add"]("TelescopePromptNormal", {bg = promptbg, fg = colors.light2})
utils["highlight-add"]("TelescopePromptPrefix", {bg = promptbg, fg = colors.neutral_aqua})
utils["highlight-add"]("TelescopePromptTitle", {bg = colors.neutral_blue, fg = colors.dark1})
else
end
local side = "darker"
if (side == "brighter") then
local previewbg = "#1f2324"
utils["highlight-add"]("TelescopePreviewNormal", {bg = previewbg})
utils["highlight-add"]("TelescopePreviewBorder", {bg = previewbg, fg = previewbg})
elseif (side == "darker") then
local previewbg = "#1a1e1f"
utils["highlight-add"]("TelescopePreviewNormal", {bg = previewbg})
utils["highlight-add"]("TelescopePreviewBorder", {bg = previewbg, fg = previewbg})
else
end
utils["highlight-add"]("TelescopeBorder", {bg = colors.bg_second, fg = colors.bg_second})
utils["highlight-add"]("TelescopeNormal", {bg = colors.bg_second})
utils["highlight-add"]("TelescopePreviewTitle", {bg = colors.neutral_green, fg = colors.dark1})
utils["highlight-add"]("TelescopeResultsTitle", {bg = colors.neutral_aqua, fg = colors.dark1})
return utils["highlight-add"]("TelescopeSelection", {bg = colors.neutral_aqua, fg = colors.dark1})
end
local function setup_noice_theme()
utils["highlight-add"]("NoicePopupmenu", {bg = colors.bg_second})
utils["highlight-add"]("NoiceCmdline", {bg = "#1f2324"})
utils["highlight-add"]("NoiceCmdlinePopup", {bg = "#1f2324"})
utils["highlight-add"]("NoiceCmdlinePrompt", {bg = "#1f2324"})
utils["highlight-add"]("NoiceCmdlinePopupBorder", {fg = colors.bright_aqua})
return utils["highlight-add"]("NoiceCmdlineIcon", {fg = colors.bright_aqua})
end
vim.api.nvim_create_autocmd("ColorScheme", {pattern = "*", callback = setup_colors})
setup_colors()
vim.api.nvim_create_autocmd("ColorScheme", {pattern = "*", callback = setup_telescope_theme})
setup_telescope_theme()
vim.api.nvim_create_autocmd("ColorScheme", {pattern = "*", callback = setup_noice_theme})
setup_noice_theme()
local function _4_()
utils["highlight-add"]("GitSignsAdd", {gui = "NONE", bg = "NONE", fg = colors.bright_aqua})
utils["highlight-add"]("GitSignsDelete", {gui = "NONE", bg = "NONE", fg = colors.neutral_red})
utils["highlight-add"]("GitSignsChange", {gui = "NONE", bg = "NONE", fg = colors.bright_blue})
utils["highlight-add"]("ScrollbarGitAdd", {gui = "NONE", bg = "NONE", fg = colors.bright_aqua})
utils["highlight-add"]("ScrollbarGitDelete", {gui = "NONE", bg = "NONE", fg = colors.neutral_red})
return utils["highlight-add"]("ScrollbarGitChange", {gui = "NONE", bg = "NONE", fg = colors.bright_blue})
end
vim.api.nvim_create_autocmd("ColorScheme", {pattern = "*", callback = _4_})
if ("epix" == vim.fn.hostname()) then
return vim.cmd("colorscheme gruvbox8_hard")
else
return vim.cmd("colorscheme gruvbox8")
end
end
return {utils.plugin("lifepillar/vim-gruvbox8", {priority = 1000, config = setup, lazy = false})}