colors.lua

Branches > main > ee3f3d0 > files / nvim / lua / colors.lua

--- Grahp's colorscheme
--- Colors from https://github.com/bluz71/vim-moonfly-colors :)

local hl = vim.api.nvim_set_hl

--- Comments: Yellow
--- Punctuation: Gray
--- Globals: Blue
--- Strings: Green
--- Numbers: Orange
--- Identifiers: Pink
--- Booleans: Red
--- Also special: Red?

local red    = "#ff5d5d"
local orange = "#de935f"
--- Less tanny more greeny I think?
local yellow = "#c6c684"
local blue   = "#74b2ff"
--- Slightly darker
local green  = "#36c692"
local pink   = "#cf87e8"

local black  = "#000000"
local gray   = "#4e4e4e"
local white  = "#ffffff"

local bg = black
local highlight_bg = "#323437"

hl(0, "Red",    {fg = red,    bg = bg})
hl(0, "Orange", {fg = orange, bg = bg})
hl(0, "Blue",   {fg = blue,   bg = bg})
hl(0, "Green",  {fg = green,  bg = bg})
hl(0, "Pink",   {fg = pink,   bg = bg})
hl(0, "Yellow", {fg = yellow, bg = bg})

hl(0, "White",  {fg = white,  bg = bg})
hl(0, "Gray",   {fg = gray,   bg = bg})

hl(0, "Punctuation", {link = "Gray"})
hl(0, "Delimiter", {link = "Punctuation"})

hl(0, "Comment", {link = "Yellow"})
hl(0, "String", {link = "Green"})
hl(0, "Boolean", {link = "Red"})
hl(0, "Function", {link = "Blue"})
hl(0, "Number", {link = "Orange"})


hl(0, "Special", {link = "White"})

hl(0, "Statement", {link = "Pink"})
hl(0, "Identifier", {link = "Pink"})
hl(0, "Type", {link = "Green"})
hl(0, "DiagnosticUnnecessary", {link = "Gray"})

--- Vim stuff

-- Background color
hl(0, "Normal", {bg = bg})
hl(0, "NormalFloat", {link = "Normal"})

hl(0, "Search", {bg = highlight_bg})
hl(0, "CurSearch", {link = "Search"})
hl(0, "IncSearch", {link = "Search"})

hl(0, "StatusLine", {bg = highlight_bg, fg = white})
hl(0, "StatusLineNC", {link = "StatusLine"})
hl(0, "StatusLineTerm", {link = "StatusLine"})
hl(0, "StatusLineTermNC", {link = "StatusLine"})
hl(0, "TabLine", {link = "StatusLine"})
hl(0, "TabLineSel", {bg = gray, fg = white})
hl(0, "TabLineSelSymbol", {link = "TablineSel"})
hl(0, "TabLineFill", {link = "DarkGray"})

hl(0, "Visual", {bg = highlight_bg})
hl(0, "MatchParen", {link = "Visual"})

hl(0, "Error", {link = "Red"})
hl(0, "ErrorMsg", {link = "Red"})
hl(0, "WarningMsg", {link = "Yellow"})

hl(0, "VertSplit", {fg = gray, bg = gray})
hl(0, "VisualNOS", {link = "Visual"})
hl(0, "VisualNonText", {bg = gray, fg = gray})
hl(0, "Pmenu", {link = "White"})
hl(0, "PmenuSel", {link = "Visual"})
hl(0, "PmenuSbar", {link = "Gray"})
hl(0, "PmenuThumb", {link = "Gray"})
hl(0, "WildMenu", {link = "White"})
hl(0, "SpellBad", {bg = "NONE", undercurl = true, sp = red})
hl(0, "SpellCap", {bg = "NONE", undercurl = true, sp = yellow})
hl(0, "SpellRare", {bg = "NONE", undercurl = true, sp = green})
hl(0, "SpellLocal", {bg = "NONE", undercurl = true, sp = blue})
hl(0, "Question", {link = "Lime"})
hl(0, "MoreMsg", {link = "Red"})
hl(0, "Cursor", {fg = bg, bg = gray})
hl(0, "lCursor", {link = "Cursor"})
hl(0, "CursorColumn", {bg = highlight_bg})
hl(0, "CursorLine", {bg = highlight_bg})
hl(0, "CursorLineSign", {link = "CursorLine"})
hl(0, "Todo", {bg = highlight_bg, fg = yellow})

---

hl(0, "ClojureParen", {link = "Punctuation"})
hl(0, "ClojureKeyword", {link = "Pink"})
hl(0, "ClojureMeta", {link = "Punctuation"})
hl(0, "ClojureQuote", {link = "Punctuation"})
hl(0, "ClojureUnquote", {link = "Punctuation"})
hl(0, "ClojureException", {link = "Function"})
hl(0, "ClojureCond", {link = "Pink"})
hl(0, "ClojureDefine", {link = "Red"})
hl(0, "ClojureSpecial", {link = "Red"})
hl(0, "ClojureMacro", {link = "Red"})
hl(0, "ClojureDeref", {link = "Red"})
hl(0, "ClojureDispatch", {link = "Red"})
hl(0, "ClojureConstant", {link = "Orange"})
hl(0, "ClojureRegexp", {link = "Green"})
hl(0, "ClojureRegexpDelimiter", {link = "Orange"})
hl(0, "ClojureRegexpEscape", {link = "Orange"})
hl(0, "ClojureRegexpBoundary", {link = "Orange"})

hl(0, "@lsp.type.macro.clojure", {link = "Red"})
-- ???
hl(0, "@lsp.type.event.clojure", {link = "White"})
hl(0, "@lsp.type.type.clojure", {link = "White"})
hl(0, "@lsp.type.class.clojure", {link = "Blue"})
hl(0, "@lsp.type.namespace.clojure", {link = "White"})

hl(0, "rubyStringDelimiter", {link = "String"})
hl(0, "rubyInterpolationDelimiter", {link = "Red"})
hl(0, "@keyword.lua", {link = "Blue"})
hl(0, "@constructor.lua", {link = "Punctuation"})
hl(0, "@operator.lua", {link = "Punctuation"})
hl(0, "@property.lua", {link = "Identifier"})
hl(0, "@keyword.function.lua", {link = "Blue"})
hl(0, "@function.builtin.lua", {link = "Blue"})
hl(0, "@keyword.conditional.lua", {link = "Blue"})
hl(0, "@keyword.repeat.lua", {link = "Blue"})
hl(0, "@keyword.return.lua", {link = "Blue"})
hl(0, "@string.escape.lua", {link = "String"})

hl(0, "OilDir", {link = "Blue"})
hl(0, "OilDirHidden", {link = "Gray"})
hl(0, "OilFileHidden", {link = "Gray"})

hl(0, "Jump", {bg = highlight_bg})
hl(0, "JumpDisambiguator", {bg = highlight_bg, bold = true, fg = "#2ad6d6"})