dotfiles/.config/nvim/lua/config/plugins/zenbones.lua

132 lines
4.9 KiB
Lua
Raw Normal View History

2022-12-27 18:36:38 +01:00
local M = {
2022-12-28 12:23:25 +01:00
"mcchrish/zenbones.nvim",
event = "VeryLazy",
dependencies = {
"rktjmp/lush.nvim",
},
2022-12-27 18:36:38 +01:00
}
function M.config()
2022-12-28 12:23:25 +01:00
vim.g.zenbones = {
style = "light",
lightness = "bright",
colorize_diagnostic_underline_text = true,
transparent_background = true,
}
2022-12-27 18:36:38 +01:00
2022-12-28 12:23:25 +01:00
local lush = require("lush")
local base = require("zenbones")
2022-12-27 18:36:38 +01:00
2022-12-28 12:23:25 +01:00
-- Create some specs
---@diagnostic disable = undefined-global
2022-12-30 15:56:05 +01:00
local specs = lush.parse(function(injected_functions)
-- See https://github.com/rktjmp/lush.nvim/issues/109
local sym = injected_functions.sym
2022-12-28 12:23:25 +01:00
return {
CursorLine({ bg = "#f5f5f0" }),
Error({ fg = "#d9534f" }),
CursorLineNr({ fg = "#BCAAA4", bg = "#f5f5f0" }),
MsgArea({ fg = "#A1887F", bg = "#f1f1f1" }),
2022-12-30 18:21:06 +01:00
String({ fg = "#5E8122", gui = "italic" }),
2022-12-30 15:56:05 +01:00
Number({ fg = "#32936F" }),
2022-12-30 18:21:06 +01:00
sym("@field")({ fg = "#6F62A7" }),
sym("@string")({ fg = "#5B7B3D", gui = "italic" }),
2022-12-30 15:56:05 +01:00
sym("@type.definition")({ fg = "#B6465F", gui = "bold" }),
sym("@function")({ fg = "#8C1831", gui = "bold" }),
sym("@method")(sym("@function")),
2022-12-30 18:21:06 +01:00
-- Comment({ fg = "#114499", gui = "bold,italic" }),
-- Comment({ fg = "#144EE1", gui = "bold,italic" }),
Comment({ fg = "#8F001D", gui = "bold,italic" }),
EndOfBuffer({ fg = "#CBCFE1" }),
2022-12-28 12:23:25 +01:00
CopilotSuggestion({ fg = "#0066cc", gui = "bold,italic" }),
LineNr({ fg = "#9FA8AC", gui = "bold,italic" }),
LineNrAbove({ fg = "#9F080C", gui = "bold,italic" }),
2022-12-30 18:21:06 +01:00
IndentBlanklineContextChar({ fg = "#699FB5", gui = "italic" }),
2022-12-28 12:23:25 +01:00
Indent1({ fg = "#DFDF9A", gui = "italic" }),
Indent2({ fg = "#BAE1FF", gui = "italic" }),
Indent3({ fg = "#BAFFC9", gui = "italic" }),
Indent4({ fg = "#FFB3BA", gui = "italic" }),
Indent5({ fg = "#FFDFBA", gui = "italic" }),
Indent6({ fg = "#F3E5F5", gui = "italic" }),
NormalFloat({ bg = "#FFF9C4" }),
FloatBorder({ fg = "#FFB74D", bg = "#FFF9C4" }),
TelescopeNormal({ bg = "#EFEBE9" }),
TelescopeBorder({ fg = "#A1887F", bg = "#EFEBE9" }),
TelescopeSelection({ fg = "#FFFFFF", bg = "#1976D2" }),
DiagnosticSignError({ fg = "#ff2200", bg = "#fff5ff", gui = "bold" }),
DiagnosticVirtualTextInfo({ fg = "#0033bb", bg = "#f7fcff", gui = "bold,italic" }),
DiagnosticVirtualTextWarn({ fg = "#bb2200", bg = "#fff9f3", gui = "bold,italic" }),
DiagnosticVirtualTextError({ fg = "#ff2200", bg = "#fff5f3", gui = "italic" }),
DiagnosticUnderlineError({ fg = "#ff0000", gui = "undercurl" }),
DiagnosticUnderlineWarn({ fg = "#ff7700", gui = "undercurl" }),
DiagnosticUnderlineInfo({ fg = "#3366cc", gui = "undercurl" }),
MarkSignHL({ fg = "#009688", bg = "#E0F7FA" }),
MarkSignNumHL({ fg = "#B2DFDB", bg = "#E0F7FA" }),
GitSignsAdd({ fg = "#81C784" }),
GitSignsAddNr({ fg = "#C8E6C9" }),
GitSignsDelete({ fg = "#E53935" }),
GitSignsDeleteNr({ fg = "#FFCDD2" }),
GitSignsChange({ fg = "#FFA726" }),
GitSignsChangeNr({ fg = "#FFE0B2" }),
2022-12-27 18:36:38 +01:00
2022-12-30 15:56:05 +01:00
Hlargs({ fg = "#2274A5" }),
2022-12-30 18:21:06 +01:00
IlluminatedWordText({ bg = "#FFEE99" }),
2022-12-30 15:56:05 +01:00
NavicIcons({ fg = "#cc0000" }),
NavicIconsFile({ fg = "#cc0000" }),
NavicIconsModule({ fg = "#cc0000" }),
NavicIconsNamespace({ fg = "#cc0000" }),
NavicIconsPackage({ fg = "#cc0000" }),
NavicIconsClass({ fg = "#cc0000" }),
NavicIconsMethod({ fg = "#cc0000" }),
NavicIconsProperty({ fg = "#cc0000" }),
NavicIconsField({ fg = "#cc0000" }),
NavicIconsConstructor({ fg = "#cc0000" }),
NavicIconsEnum({ fg = "#cc0000" }),
NavicIconsInterface({ fg = "#cc0000" }),
NavicIconsFunction({ fg = "#cc0000" }),
NavicIconsVariable({ fg = "#cc0000" }),
NavicIconsConstant({ fg = "#cc0000" }),
NavicIconsString({ fg = "#cc0000" }),
NavicIconsNumber({ fg = "#cc0000" }),
NavicIconsBoolean({ fg = "#cc0000" }),
NavicIconsArray({ fg = "#cc0000" }),
NavicIconsObject({ fg = "#cc0000" }),
NavicIconsKey({ fg = "#cc0000" }),
NavicIconsKeyword({ fg = "#cc0000" }),
NavicIconsNull({ fg = "#cc0000" }),
NavicIconsEnumMember({ fg = "#cc0000" }),
NavicIconsStruct({ fg = "#cc0000" }),
NavicIconsEvent({ fg = "#cc0000" }),
NavicIconsOperator({ fg = "#cc0000" }),
NavicIconsTypeParameter({ fg = "#cc0000" }),
NavicText({ fg = "#cc0000", gui = "italic" }),
2022-12-28 12:35:57 +01:00
2022-12-28 12:23:25 +01:00
-- LspCodeLens({ fg = "#00ff00", gui = "undercurl" }),
-- LspSignatureActiveParameter({ fg = "#ff0000", bg = "#ffffcc" }),
2022-12-27 18:36:38 +01:00
2022-12-30 11:48:44 +01:00
NoiceCmdlinePopup({ bg = "#E1F5FE" }),
NoiceMini({ bg = "#FFF9C4" }),
2022-12-28 12:23:25 +01:00
PMenu({ bg = "#F7F5F0" }),
PMenuBorder({ bg = "#F7F5F0", fg = "#886622" }),
PMenuSel({ fg = "#FFFFFF", bg = "#1976D2" }),
PMenuSbar({ bg = "#90CAF9" }),
PMenuThumb({ bg = "#64B5F6" }),
StatusLine({ base = base.VertSplit, fg = "#BCAAA4" }),
StatusLineNC({ base = base.VertSplit, fg = "#BCAAA4" }),
2022-12-27 18:36:38 +01:00
2022-12-28 12:23:25 +01:00
TreesitterContext({ bg = "#f0f0f0", fg = "#BCAAA4", gui = "bold,italic" }),
TreesitterContextLineNumber({ bg = "#f0f0f0", fg = "#979770", gui = "bold,italic" }),
}
end)
-- Apply specs using lush tool-chain
vim.cmd("colorscheme zenbones")
lush.apply(lush.compile(specs))
2022-12-27 18:36:38 +01:00
end
return M