From cdfc208d3a4d6349630fde2225ff6a09f4d233dc Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 3 Apr 2025 23:30:31 +0200 Subject: [PATCH] finalized cmp menu colors --- lua/plugins/cmp.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 141ebb8..8abc8b5 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -101,12 +101,18 @@ return { documentation = { winhighlight = 'Normal:CmpDocumentation' }, + completion = { + winhighlight = 'Normal:Pmenu,FloatBorder:Pmenu,Search:None', + col_offset = -3, + side_padding = 0, + }, }, formatting = { fields = { 'kind', 'abbr', 'menu' }, expandable_indicator = false, format = function(entry, vim_item) - local kind = require('lspkind').cmp_format({ mode = 'symbol_text', maxwidth = 50 })(entry, vim_item) + local kind = require('lspkind').cmp_format({ mode = 'symbol_text', maxwidth = 50, show_labelDetails = true })( + entry, vim_item) local strings = vim.split(kind.kind, '%s', { trimempty = true }) kind.kind = ' ' .. (strings[1] or '') .. ' ' kind.menu = ' (' .. (strings[2] or '') .. ')'