summaryrefslogtreecommitdiffstats
path: root/lua/core/highlight.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-22 18:07:36 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-22 18:07:36 -0400
commita7929fa1c04758a0da28a58d3da195c7b218679b (patch)
treeecf13ead495e9b99896c0145fd61c5e5922e1993 /lua/core/highlight.lua
parent87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b (diff)
downloadnvim-a7929fa1c04758a0da28a58d3da195c7b218679b.tar.gz
nvim-a7929fa1c04758a0da28a58d3da195c7b218679b.tar.bz2
nvim-a7929fa1c04758a0da28a58d3da195c7b218679b.zip
move highlights to colorscheme, and change cmp style
Diffstat (limited to 'lua/core/highlight.lua')
-rw-r--r--lua/core/highlight.lua80
1 files changed, 0 insertions, 80 deletions
diff --git a/lua/core/highlight.lua b/lua/core/highlight.lua
deleted file mode 100644
index 716c5ed..0000000
--- a/lua/core/highlight.lua
+++ /dev/null
@@ -1,80 +0,0 @@
-local highlight = function(group, opts, space)
- if not pcall(require, "mellow") then return end
- space = space or 0
-
- if type(group) == 'table' then
- for i in pairs(group) do
- a.nvim_set_hl(space, group[i], opts)
- end
- elseif type(group) == 'string' then
- a.nvim_set_hl(space, group, opts)
- end
-end
-
-if pcall(require, "mellow") then c = require('mellow.colors').dark end
-
--- 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_dark })
-highlight('TelescopePreviewNormal', { bg = c.bg_dark })
-highlight('TelescopePreviewTitle', { bg = c.bg_dark, fg = c.bg_dark })
-
-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})
-
--- completion highlights
-highlight('CmpItemAbbrDeprecated', { fg = c.gray06, strikethrough = true })
-highlight('CmpItemAbbrMatch', { fg = c.yellow, bold = true })
-highlight('CmpItemAbbrMatchFuzzy', { fg = c.yellow, bold = true })
-highlight('CmpItemMenu', { fg = c.magenta, italic = true })
-
-highlight({ 'CmpItemKindField', 'CmpItemKindProperty', 'CmpItemKindEvent' },
- { fg = '#EED8DA', bg = '#B5585F' })
-highlight({ 'CmpItemKindText', 'CmpItemKindEnum', 'CmpItemKindKeyword' },
- { fg = '#C3E88D', bg = '#9FBD73' })
-highlight({ 'CmpItemKindConstant', 'CmpItemKindConstructor',
- 'CmpItemKindReference' },
- { fg = '#FFE082', bg = '#D4BB6C' })
-highlight({ 'CmpItemKindFunction', 'CmpItemKindStruct', 'CmpItemKindClass',
- 'CmpItemKindModule', 'CmpItemKindOperator', },
- { fg = '#EADFF0', bg = '#A377BF', })
-highlight({ 'CmpItemKindVariable', 'CmpItemKindFile' },
- { fg = '#C5CDD9', bg = '#7E8294' })
-highlight({ 'CmpItemKindUnit', 'CmpItemKindSnippet', 'CmpItemKindFolder' },
- { fg = '#F5EBD9', bg = '#D4A959' })
-highlight({ 'CmpItemKindMethod', 'CmpItemKindValue', 'CmpItemKindEnumMember' },
- { fg = '#DDE5F5', bg = '#6C8ED4' })
-highlight({ 'CmpItemKindInterface', 'CmpItemKindColor',
- 'CmpItemKindTypeParameter' },
- { fg = '#D8EEEB', bg = '#58B5A8' })