diff --git a/plugin/cmp.lua b/plugin/cmp.lua index caf8c27..acffc43 100644 --- a/plugin/cmp.lua +++ b/plugin/cmp.lua @@ -26,15 +26,15 @@ for kind in pairs(types.lsp.CompletionItemKind) do end autocmd.subscribe('ColorScheme', function() - highlight.inherit('CmpItemAbbrDefault', 'Pmenu', { bg = 'NONE', default = true }) - highlight.inherit('CmpItemAbbrDeprecatedDefault', 'Comment', { bg = 'NONE', default = true }) - highlight.inherit('CmpItemAbbrMatchDefault', 'Pmenu', { bg = 'NONE', default = true }) - highlight.inherit('CmpItemAbbrMatchFuzzyDefault', 'Pmenu', { bg = 'NONE', default = true }) - highlight.inherit('CmpItemKindDefault', 'Special', { bg = 'NONE', default = true }) - highlight.inherit('CmpItemMenuDefault', 'Pmenu', { bg = 'NONE', default = true }) + highlight.inherit('CmpItemAbbrDefault', 'Pmenu', { bg = 'NONE', default = false }) + highlight.inherit('CmpItemAbbrDeprecatedDefault', 'Comment', { bg = 'NONE', default = false }) + highlight.inherit('CmpItemAbbrMatchDefault', 'Pmenu', { bg = 'NONE', default = false }) + highlight.inherit('CmpItemAbbrMatchFuzzyDefault', 'Pmenu', { bg = 'NONE', default = false }) + highlight.inherit('CmpItemKindDefault', 'Special', { bg = 'NONE', default = false }) + highlight.inherit('CmpItemMenuDefault', 'Pmenu', { bg = 'NONE', default = false }) for name in pairs(types.lsp.CompletionItemKind) do if type(name) == 'string' then - vim.api.nvim_set_hl(0, ('CmpItemKind%sDefault'):format(name), { link = 'CmpItemKind', default = true }) + vim.api.nvim_set_hl(0, ('CmpItemKind%sDefault'):format(name), { link = 'CmpItemKind', default = false }) end end end)