Skip to content

Instantly share code, notes, and snippets.

@webel
Created February 26, 2025 01:09
Port of archery colorscheme to lua (transparent).
-- Port of archery colorscheme to lua (transparent).
-- Slightly femmed up archery colorscheme. Dash of purple.
-- Set the background to dark (this doesn't affect transparency)
vim.o.background = "dark"
-- Clear existing highlights
vim.cmd("highlight clear")
-- Set the colorscheme name
vim.g.colors_name = "archery"
-- Define highlight groups using vim.api.nvim_set_hl
local function set_highlight(group, opts)
vim.api.nvim_set_hl(0, group, opts)
end
-- Syntax Group Names
set_highlight("Comment", { italic = true, fg = "#535B6F", bg = "NONE" })
set_highlight("Constant", { fg = "#b226c1", bg = "NONE" })
set_highlight("String", { fg = "#F6F9FC", bg = "NONE" })
set_highlight("Character", { link = "Constant" })
set_highlight("Number", { link = "Constant" })
set_highlight("Boolean", { link = "Constant" })
set_highlight("Float", { link = "Constant" })
set_highlight("Identifier", { fg = "#006596", bg = "NONE" })
set_highlight("Function", { link = "Identifier" })
set_highlight("Statement", { bold = true, fg = "#0088CC", bg = "NONE" })
set_highlight("Conditional", { link = "Statement" })
set_highlight("Repeat", { link = "Statement" })
set_highlight("Label", { link = "Statement" })
set_highlight("Operator", { link = "Statement" })
set_highlight("Keyword", { link = "Statement" })
set_highlight("Exception", { link = "Statement" })
set_highlight("PreProc", { fg = "#F6F9FC", bg = "NONE" })
set_highlight("Include", { link = "PreProc" })
set_highlight("Define", { link = "PreProc" })
set_highlight("Macro", { link = "PreProc" })
set_highlight("PreCondit", { link = "PreProc" })
set_highlight("Type", { fg = "#0088CC", bg = "NONE" })
set_highlight("StorageClass", { link = "Type" })
set_highlight("Structure", { link = "Type" })
set_highlight("Typedef", { link = "Type" })
set_highlight("Special", { fg = "#53586F", bg = "NONE" })
set_highlight("SpecialChar", { link = "Special" })
set_highlight("Tag", { link = "Special" })
set_highlight("Delimiter", { link = "Special" })
set_highlight("SpecialComment", { link = "Special" })
set_highlight("Debug", { link = "Special" })
set_highlight("Underlined", { underline = true, fg = "NONE", bg = "NONE" })
set_highlight("Ignore", { fg = "NONE", bg = "NONE" })
set_highlight("Error", { fg = "#C95F5F", bg = "NONE" })
set_highlight("Todo", { fg = "#EAC06E", bg = "NONE" })
-- Default Highlighting Groups
set_highlight("Normal", { fg = "#81A3CF", bg = "NONE" }) -- Transparent background
-- set_highlight("Visual", { fg = "#25272C", bg = "#81A3CF" }) -- Visual mode can have a background
set_highlight("Visual", { fg = "#fffffe", bg = "#413a7a" }) -- Dark blue for Visual mode
-- set_highlight("Visual", { fg = "#25272C", bg = "#4C7A7A" }) -- Muted teal for Visual mode
-- set_highlight("Visual", { fg = "#25272C", bg = "#5C7A99" }) -- Muted blue for Visual mode
set_highlight("VisualNOS", { fg = "#F6F9FC", bg = "NONE" })
set_highlight("Cursor", { fg = "#F6F9FC", bg = "#0088CC" }) -- Cursor can have a background
-- set_highlight("CursorIM", { fg = "#F6F9FC", bg = "#81A3CF" }) -- Cursor in IME mode
set_highlight("CursorIM", { fg = "#F6F9FC", bg = "#3B5A7A" }) -- Dark blue for IME mode
set_highlight("CursorColumn", { fg = "NONE", bg = "NONE" }) -- Transparent
set_highlight("CursorLine", { fg = "NONE", bg = "#1E1E2E" })
set_highlight("CursorLineNr", { fg = "#0088CC", bg = "NONE" })
set_highlight("ErrorMsg", { fg = "#C95F5F", bg = "NONE" })
set_highlight("ModeMsg", { fg = "#81A3CF", bg = "NONE" })
set_highlight("MoreMsg", { fg = "#0088CC", bg = "NONE" })
set_highlight("WarningMsg", { fg = "#F07D30", bg = "NONE" })
set_highlight("Title", { fg = "#0088CC", bg = "NONE" })
set_highlight("Question", { fg = "#0088CC", bg = "NONE" })
set_highlight("SpecialKey", { fg = "#81A3CF", bg = "NONE" })
set_highlight("NonText", { fg = "#F6F9FC", bg = "NONE" })
set_highlight("EndOfBuffer", { fg = "#81A3CF", bg = "NONE" })
set_highlight("Pmenu", { bold = true, fg = "#25272C", bg = "NONE" }) -- Transparent
set_highlight("PmenuSel", { bold = true, fg = "#F6F9FC", bg = "#0088CC" }) -- Selected item can have a background
set_highlight("PmenuSbar", { fg = "NONE", bg = "NONE" }) -- Transparent
set_highlight("PmenuThumb", { fg = "NONE", bg = "NONE" }) -- Transparent
set_highlight("MatchParen", { fg = "#25272C", bg = "#F6F9FC" }) -- Matching parentheses can have a background
set_highlight("IncSearch", { fg = "#25272C", bg = "#81A3CF" }) -- Incremental search can have a background
set_highlight("Search", { fg = "#282D34", bg = "#F6F9FC" }) -- Search can have a background
set_highlight("WildMenu", { bold = true, fg = "#F6F9FC", bg = "#0088CC" }) -- Wild menu can have a background
set_highlight("Folded", { bold = true, fg = "#0088CC", bg = "NONE" }) -- Transparent
set_highlight("FoldColumn", { fg = "#F6F9FC", bg = "NONE" }) -- Transparent
set_highlight("DiffAdd", { fg = "#73BA25", bg = "NONE" })
set_highlight("DiffChange", { fg = "#EAC06E", bg = "NONE" })
set_highlight("DiffDelete", { fg = "#C95F5F", bg = "NONE" })
set_highlight("DiffText", { fg = "#81A3CF", bg = "NONE" })
set_highlight("SpellBad", { fg = "#C95F5F", bg = "NONE" })
set_highlight("SpellCap", { fg = "#F07D30", bg = "NONE" })
set_highlight("SpellLocal", { fg = "#73BA25", bg = "NONE" })
set_highlight("SpellRare", { fg = "#EAC06E", bg = "NONE" })
set_highlight("Directory", { bold = true, fg = "#0088CC", bg = "NONE" })
set_highlight("LineNr", { fg = "#53586F", bg = "NONE" }) -- Transparent
set_highlight("VertSplit", { bold = true, fg = "#0088CC", bg = "NONE" }) -- Transparent
set_highlight("ColorColumn", { fg = "NONE", bg = "NONE" }) -- Transparent
set_highlight("SignColumn", { fg = "#81A3CF", bg = "NONE" }) -- Transparent
set_highlight("Conceal", { fg = "#81A3CF", bg = "NONE" }) -- Transparent
-- GUI Highlighting Groups
set_highlight("Menu", { fg = "#53586F", bg = "NONE" }) -- Transparent
set_highlight("Scrollbar", { fg = "#53586F", bg = "NONE" }) -- Transparent
set_highlight("Tooltip", { fg = "#F6F9FC", bg = "NONE" }) -- Transparent
set_highlight("NormalFloat", { fg = "#81A3CF", bg = "NONE" }) -- Transparent background for floats
set_highlight("FloatBorder", { fg = "#81A3CF", bg = "NONE" }) -- Transparent border for floats
set_highlight("Sidebar", { fg = "#81A3CF", bg = "NONE" }) -- Transparent background for sidebars
set_highlight("SidebarBorder", { fg = "#81A3CF", bg = "NONE" }) -- Transparent border for sidebars
-- Custom highlight groups for lualine
-- Override lualine highlight groups
set_highlight("lualine_c_normal", { fg = "#F6F9FC", bg = "#2B2D34" }) -- Middle section (normal mode)
set_highlight("lualine_c_insert", { fg = "#F6F9FC", bg = "#2B2D34" }) -- Middle section (insert mode)
set_highlight("lualine_c_visual", { fg = "#F6F9FC", bg = "#2B2D34" }) -- Middle section (visual mode)
set_highlight("lualine_c_replace", { fg = "#F6F9FC", bg = "#2B2D34" }) -- Middle section (replace mode)
set_highlight("lualine_c_command", { fg = "#F6F9FC", bg = "#2B2D34" }) -- Middle section (command mode)
set_highlight("lualine_c_inactive", { fg = "#53586F", bg = "#2B2D34" }) -- Middle section (inactive windows)
-- Override other lualine sections if needed
set_highlight("lualine_a_normal", { fg = "#81A3CF", bg = "#2B2D34" }) -- Left section (normal mode)
set_highlight("lualine_a_insert", { fg = "#25B8A5", bg = "#2B2D34" }) -- Left section (insert mode)
set_highlight("lualine_a_visual", { fg = "#EAC06E", bg = "#2B2D34" }) -- Left section (visual mode)
set_highlight("lualine_a_replace", { fg = "#C95F5F", bg = "#2B2D34" }) -- Left section (replace mode)
set_highlight("lualine_a_command", { fg = "#73BA25", bg = "#2B2D34" }) -- Left section (command mode)
set_highlight("lualine_a_inactive", { fg = "#53586F", bg = "#2B2D34" }) -- Left section (inactive windows)
set_highlight("lualine_b_normal", { fg = "#81A3CF", bg = "#2B2D34" }) -- Middle-left section (normal mode)
set_highlight("lualine_b_insert", { fg = "#25B8A5", bg = "#2B2D34" }) -- Middle-left section (insert mode)
set_highlight("lualine_b_visual", { fg = "#EAC06E", bg = "#2B2D34" }) -- Middle-left section (visual mode)
set_highlight("lualine_b_replace", { fg = "#C95F5F", bg = "#2B2D34" }) -- Middle-left section (replace mode)
set_highlight("lualine_b_command", { fg = "#73BA25", bg = "#2B2D34" }) -- Middle-left section (command mode)
set_highlight("lualine_b_inactive", { fg = "#53586F", bg = "#2B2D34" }) -- Middle-left section (inactive windows)
-- Base indent guides (other levels)
set_highlight("SnacksIndent", { fg = "#53586F", bg = "NONE" }) -- Muted color for other levels
-- Current scope (indent level)
set_highlight("SnacksIndentScope", { fg = "#81A3CF", bg = "NONE" }) -- Brighter color for current level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment