From 97cd83728259a23e690064c005610d6a2c2f492c Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 25 Nov 2025 00:04:06 -0500 Subject: [PATCH 1/2] feat: cmp theme --- lua/midnight/theme.lua | 53 +++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/lua/midnight/theme.lua b/lua/midnight/theme.lua index cf84152..2825307 100644 --- a/lua/midnight/theme.lua +++ b/lua/midnight/theme.lua @@ -73,7 +73,7 @@ function M.apply() hi('CursorLineNr', { fg = cs.medium_emphasis }) hi('Conceal', { fg = cs.light_black, bg = cs.black }) - hi('Directory', { fg = cs.white }) + hi('Directory', { fg = cs.blue }) hi('Error', { fg = cs.red }) hi('ErrorMsg', { bold = true, underline = true, fg = cs.red }) hi('MoreMsg', { fg = cs.yellow }, { 'WarningMsg' }) @@ -172,34 +172,29 @@ function M.apply() hi('CmpItemAbbrDeprecated', { fg = cs.light_black, strikethrough = true }) hi('CmpItemMenu', { fg = cs.light_black }) - for hlgroup, color in pairs({ - Key = 'white', - Keyword = 'blue', - Folder = 'white', - File = 'white', - Boolean = 'green', - Class = 'white', - Constant = 'green', - Constructor = 'white', - Enum = 'white', - EnumMember = 'white', - Field = 'white', - Function = 'white', - Interface = 'white', - Method = 'white', - Namespace = 'white', - Null = 'white', - Number = 'green', - Operator = 'white', - Property = 'white', - String = 'green', - Struct = 'white', - Text = 'white', - TypeParameter = 'white', - Variable = 'white', - }) do - hi('CmpItemKind' .. hlgroup, { fg = cs[color] }) - end + link('Boolean', 'CmpItemKindBoolean') + link('Constant', 'CmpItemKindConstant') + link('Function', 'CmpItemKindFunction') + link('Keyword', 'CmpItemKindKeyword') + link('Namespace', 'CmpItemKindNamespace') + link('Number', 'CmpItemKindNumber') + link('Operator', 'CmpItemKindOperator') + link('String', 'CmpItemKindString') + link('Type', 'CmpItemKindClass') + link('Type', 'CmpItemKindEnum') + link('Type', 'CmpItemKindInterface') + link('Type', 'CmpItemKindStruct') + link('Type', 'CmpItemKindConstructor') + link('Type', 'CmpItemKindTypeParameter') + link('Function', 'CmpItemKindMethod') + link('Normal', 'CmpItemKindVariable') + link('Normal', 'CmpItemKindProperty') + link('Normal', 'CmpItemKindField') + link('Normal', 'CmpItemKindText') + link('Normal', 'CmpItemKindFile') + link('String', 'CmpItemKindKey') + link('Directory', 'CmpItemKindFolder') + link('Constant', 'CmpItemKindNull') link('NormalFloat', 'NullLsInfoBorder') From 6f795b8caba274dac28abf9fcdb497def2bd8717 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 25 Nov 2025 00:05:02 -0500 Subject: [PATCH 2/2] feat(doc): update readme to show completion support --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 244d816..fc58fc1 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,6 @@ Install with any package manager of your choice. For example, with - [treesitter](https://github.com/nvim-treesitter/nvim-treesitter) - [fzf-lua](https://github.com/ibhagwan/fzf-lua) -- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) +- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp), + [blink.cmp](https://github.com/saghen/blink.cmp) - [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) -- [blink.cmp](https://github.com/saghen/blink.cmp)