diff options
author | Squibid <me@zacharyscheiman.com> | 2024-01-30 21:52:24 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-01-30 21:52:24 -0500 |
commit | d94b454eb61a0d0a99f9939560506c2db24f3315 (patch) | |
tree | 52dd40a8d51a79896750fa0fd0ea85fd3445405f /colors/mellow.ext.lua | |
parent | e669b3eb8e27069ed0c52ea269e3c27debb989b6 (diff) | |
download | nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.tar.gz nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.tar.bz2 nvim-d94b454eb61a0d0a99f9939560506c2db24f3315.zip |
way too lazy to sort this out, adding kitchen sink
Diffstat (limited to 'colors/mellow.ext.lua')
-rw-r--r-- | colors/mellow.ext.lua | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/colors/mellow.ext.lua b/colors/mellow.ext.lua index a3080a3..aed1972 100644 --- a/colors/mellow.ext.lua +++ b/colors/mellow.ext.lua @@ -11,6 +11,17 @@ local highlight = function(group, opts, space) end end +local function cpyhl(hlgroup) + local ok, hl = pcall(vim.api.nvim_get_hl_by_name, hlgroup, true) + if not ok then return end + for _, key in pairs({"foreground", "background", "special"}) do + if hl[key] then + hl[key] = string.format("#%06x", hl[key]) + end + end + return hl +end + local function getcolor(index, fallback) return vim.g['terminal_color_' .. index] or fallback end @@ -36,31 +47,15 @@ local colors = { if pcall(require, "mellow") then c = require('mellow.colors').dark end --- vim highlights ------------------------------------------------------------- -highlight('CursorLineNr', { bold = true }) - -- remove tildas highlight('EndOfBuffer', { fg = vim.g.terminal_color_background }) +-- make all backgrounds the same color +highlight('NormalNC', cpyhl('Normal')) + -- plugin highlights ---------------------------------------------------------- -- telescope -highlight('TelescopeMatching', { bg = c.gray01, fg = c.blue }) - -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 = vim.g.terminal_color_background }) -highlight('TelescopeSelectionCaret', { bg = vim.g.terminal_color_background, fg = c.cyan, bold = true }) +highlight('TelescopeMatching', { fg = c.yellow }) -- alpha highlight('AlphaHeader', { fg = colors.blue }) |