summaryrefslogtreecommitdiffstats
path: root/lua/core/highlight.lua
blob: d1f09db0a079b8e69240174c406cb77c87b886a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
local highlight = function(group, opts, space)
  space = space or 0
  a.nvim_set_hl(space, group, opts)
end

local c = require('mellow.colors').dark

-- vim highlights -------------------------------------------------------------
highlight("CursorLineNr", { bg = c.bg_dark, fg = c.fg,  bold = true })

-- remove tildas
highlight('EndOfBuffer', { fg = c.bg })

-- plugin highlights ----------------------------------------------------------
-- telescope
highlight('TelescopeMatching', { bg = c.gray01 })
highlight('TelescopeNormal', { bg = c.bg_dark })

highlight('TelescopePreviewBorder', { bg = c.bg })
highlight('TelescopePreviewNormal', { bg = c.bg })
highlight('TelescopePreviewTitle', { bg = c.bg, fg = c.bg })

highlight('TelescopePromptBorder', { bg = c.gray01 })
highlight('TelescopePromptNormal', { bg = c.gray01 })
highlight('TelescopePromptPrefix', { bg = c.gray01 })
highlight('TelescopePromptTitle', { bg = c.gray01 })

highlight('TelescopeResultsBorder', { bg = c.bg_dark })
highlight('TelescopeResultsNormal', { bg = c.bg_dark })
highlight('TelescopeResultsTitle', { bg = c.bg_dark, fg = c.bg_dark })

highlight('TelescopeSelection', { bg = c.bg })
highlight('TelescopeSelectionCaret', { bg = c.bg, fg = c.red})

-- indent blankline
highlight('IndentBlanklineIndent1', { bg = c.bg })
highlight('IndentBlanklineIndent2', { bg = c.bg_dark })

-- alpha
highlight('AlphaHeader', { fg = c.blue })

-- fidget
highlight('FidgetTask', { fg = c.fg })

-- quick fix sign
highlight('LightBulbSignTxthl', {fg = c.bright_magenta})