From 09c0881355045b89f8e60fff9760505e660e04e5 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 8 Nov 2025 13:57:12 -0500 Subject: [PATCH 1/3] fix plugin integrations --- README.md | 1 + lua/midnight/theme.lua | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 909ce06..b143d12 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,4 @@ neovim theme for code, not colors. - [fzf-lua](https://github.com/ibhagwan/fzf-lua) - [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) - [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) +- [blink.cmp](https://github.com/saghen/blink.cmp) diff --git a/lua/midnight/theme.lua b/lua/midnight/theme.lua index de24386..a01c279 100644 --- a/lua/midnight/theme.lua +++ b/lua/midnight/theme.lua @@ -125,9 +125,9 @@ function M.apply() hi('@variable', { none = true }) - hi('Pmenu', { bg = cs.med_grey }, { 'PmenuSbar' }) - hi('PmenuSel', { fg = cs.med_grey, bg = cs.medium_emphasis }) - hi('PmenuThumb', { bg = cs.medium_emphasis }) + hi('Pmenu', { bg = cs.dark_grey }, { 'PmenuSbar' }) + hi('PmenuSel', { bg = cs.med_grey }) + hi('PmenuThumb', { bg = cs.grey }) hi('LspInlayHint', { fg = cs.light_black }) hi('LspSignatureActiveParameter', { underline = true, italic = true }) @@ -164,7 +164,13 @@ function M.apply() link('Search', 'HighlightUndo') + link('Pmenu', 'CmpPmenu') + link('PmenuSel', 'CmpPmenuSel') + hi('CmpItemAbbr', { fg = cs.white }) hi('CmpItemAbbrMatch', { fg = cs.white, bold = true }) + hi('CmpItemAbbrMatchFuzzy', { fg = cs.white, bold = true }) + hi('CmpItemAbbrDeprecated', { fg = cs.light_black, strikethrough = true }) + hi('CmpItemMenu', { fg = cs.light_black }) for hlgroup, color in pairs({ Key = 'white', @@ -202,6 +208,7 @@ function M.apply() link('NormalFloat', 'FzfLuaBorder') hi('FzfLuaHeaderText', { fg = cs.white }, { 'FzfLuaBufFlagCur' }) hi('FzfLuaBufFlagAlt', { fg = cs.white }) + link('Normal', 'FzfLuaLivePrompt') vim.g.terminal_color_0 = cs.black vim.g.terminal_color_1 = cs.red From 3f2b1233efe526ec64af0c755cf8ff2f0a48ba0a Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 8 Nov 2025 14:00:14 -0500 Subject: [PATCH 2/3] fix(ci): yping --- lua/midnight/palette.lua | 9 +++++++++ lua/midnight/theme.lua | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lua/midnight/palette.lua b/lua/midnight/palette.lua index 2454da0..a322643 100644 --- a/lua/midnight/palette.lua +++ b/lua/midnight/palette.lua @@ -73,6 +73,15 @@ M.daylight = { cyan = '#00BFFF', white = '#ffffff', + bright_black = '#555555', + bright_red = '#ff0000', + bright_green = '#00ff00', + bright_yellow = '#ffa500', + bright_blue = '#0000ff', + bright_magenta = '#ff00ff', + bright_cyan = '#00ffff', + bright_white = '#ffffff', + light_black = '#555555', light_grey = '#ECECEC', light_red = '#ff0000', diff --git a/lua/midnight/theme.lua b/lua/midnight/theme.lua index a01c279..da05d8a 100644 --- a/lua/midnight/theme.lua +++ b/lua/midnight/theme.lua @@ -14,8 +14,9 @@ local M = {} ---@param from string ---@param tos string|string[] local function link(from, tos) - tos = type(tos) == 'string' and { tos } or tos - for _, to in ipairs(tos) do + ---@type string[] + local tos_list = type(tos) == 'string' and { tos } or tos + for _, to in ipairs(tos_list) do vim.api.nvim_set_hl(0, to, { link = from }) end end From 8ccbd5380e80703b432da31013324d600e14a1c6 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 8 Nov 2025 14:01:37 -0500 Subject: [PATCH 3/3] fix(ci): yping --- lua/midnight/theme.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/midnight/theme.lua b/lua/midnight/theme.lua index da05d8a..cf84152 100644 --- a/lua/midnight/theme.lua +++ b/lua/midnight/theme.lua @@ -14,8 +14,7 @@ local M = {} ---@param from string ---@param tos string|string[] local function link(from, tos) - ---@type string[] - local tos_list = type(tos) == 'string' and { tos } or tos + local tos_list = type(tos) == 'string' and { tos } or tos --[[@as string[] ]] for _, to in ipairs(tos_list) do vim.api.nvim_set_hl(0, to, { link = from }) end @@ -73,13 +72,13 @@ function M.apply() hi('CursorLine', { bg = cs.dark_grey }, { 'ColorColumn', 'Folded', 'Visual' }) hi('CursorLineNr', { fg = cs.medium_emphasis }) - hi('Conceal', { fg = cs.light_black, bg = cs.bg }) + hi('Conceal', { fg = cs.light_black, bg = cs.black }) hi('Directory', { fg = cs.white }) hi('Error', { fg = cs.red }) hi('ErrorMsg', { bold = true, underline = true, fg = cs.red }) hi('MoreMsg', { fg = cs.yellow }, { 'WarningMsg' }) hi('MatchParen', { bg = cs.med_grey }) - hi('NormalFloat', { bg = cs.bg }, { + hi('NormalFloat', { bg = cs.black }, { 'LspInfoBorder', 'FloatBorder', 'FloatShadow',